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 .fadeIn("slow")
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 :).
Try this:
var rows = $('some HTML rows');
rows.hide();
$('.row-data:last-child').after(rows);
rows.fadeIn("slow");
Example: http://jsfiddle.net/qdPAe/1/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With