I am trying to attach a load event handler to images like this:
$(document).on('load', '.mini img', function(){
$(this).prev().hide();
$(this).fadeIn(500);
});
Can anyone explain why this isn't working?
Images are simply formed using information gotten through an ajax request and inserted using append
method.
A lot of people had this problem and i wonder what the solution was.