1

I'm trying to load 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");

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.