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.