开发者

Wait until loading content

开发者 https://www.devze.com 2023-01-08 07:34 出处:网络
I\'m trying to loa开发者_开发技巧d a table by jQuery load then zebra the table but the content of table is loaded but the zebra fails. If the page is loaded and the table exists the zebra function wor

I'm trying to loa开发者_开发技巧d a table by jQuery load then zebra the table but the content of table is loaded but the zebra fails. If the page is loaded and the table exists the zebra function works.

$("#processTab").load("URL");

$(".Innertable tr:nth-child(even)").css("background-color", "#eee");


You need to zebra your table after the table has been loaded. To detect when the table has been loaded use the callback of the load method.

0

精彩评论

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

关注公众号