ale ale - 1 year ago 62
jQuery Question

Fade in a table row when it's added to a table

I have the following code to add a new row to the end of a table:

$('.row-data:last').after('some HTML rows');

I want to use something like
so each row fades in before it appears but I don't seem to be getting any animation:

$('.row-data:last').after('some HTML rows').fadeIn("slow");

Any ideas what I'm missing?

Thank you :).

Answer Source

Try this:

var rows = $('some HTML rows');