I am trying to fade out all my images within a table with Jquery.
The following seems not to work.Maybe a syntax error?
$(function() {
$('#myTable img').each(function(index) {
$(this).fadeOut('slow', function() {
// Animation complete.
});
});
});
You only have to do this:
You don’t have to use the
eachmethod.And if you want to use the
eachmethod, do the followingThe
ewill reference current image.