Show/hide tables with jQuery

前端 未结 6 1516
不思量自难忘°
不思量自难忘° 2020-12-31 14:32

I have a series of tables similar to the following html code:

6条回答
  •  别那么骄傲
    2020-12-31 15:03

    Two problems:
    First, Your HTML is broken
    Change

     

To

 

Second, HTML id's should be unique so I suggest using classes instead.

Here is a working example: http://jsfiddle.net/jkohnen/tBkh4/

I used .toggle() to simplify the jQuery a bit

Hope that helps, and Happy Coding.

提交回复
热议问题
//HEAD CONTENT 1// //BODY CONTENT 2// //BODY CONTENT 2//