开发者

how to prevent nested tables in jquery tablesort from being alternating colors

开发者 https://www.devze.com 2023-02-01 06:10 出处:网络
I have a table that I created and I am using jquery tablesorter. It sorts perfectly on the parent tables but when I add in code to collapse the children tables the alternating row colors on the parent

I have a table that I created and I am using jquery tablesorter. It sorts perfectly on the parent tables but when I add in code to collapse the children tables the alternating row colors on the parent tables gets messed up and the chil开发者_StackOverflowdren tables get alternating colors. How can I prevent the children tables from getting alternating row colors and have only the parent table be alternating?


You could try using the update command in the jQuery Tablesorter (if you're in fact using this plugin).

//this refreshes the plugin 
// and is useful for dynamic tables
$("table").trigger('update');
0

精彩评论

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