开发者

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

开发者 https://www.devze.com 2022-12-23 02:50 出处:网络
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

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

精彩评论

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