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?
Use <tbody>
tags for this
Give them a class name that is consistent then you can do:
$('table td.classname')
To get the ones you want.
精彩评论