tags:

views:

47

answers:

2

I have an html table with many rows. I'm currently grouping several rows inside a div (I know this is ugly) and then show or hide the divs to show or hide the rows inside it. Is there a standard way to do this. Something like rowgroup or multiple tbody instead of this ugly div grouping?

+2  A: 

Use <tbody> tags for this

Ray
Can you have multiple tbodys to group the rows. I've though that you had one thead, one tbody, and one tfoot per table.
rmarimon
Multiple tbdodys are fine. You are correct that only one thead and tfoot are allowed.
Ray
+2  A: 

Give them a class name that is consistent then you can do:

$('table td.classname')

To get the ones you want.

matpol