简体   繁体   中英

How do I collapse a table row or grid?

In this image, I need collapsing in breakfast row. Does anyone know how I can collapse whole tr or else with div ?

折叠行

You need some reference for locating the table. In this example table should have a class called "myTable":

$('.myTable tr').eq(0).hide();

eq(number): Number is the position of the tr. On your example there are 7 tr.

Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM