开发者

How to groups table rows in html to manipulate them with jquery

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜