Avatar of Pedro Chagas
Pedro Chagas
Flag for Portugal

asked on 

Jquery success image loaded

Hi E's, I have this code to know if the image have any error when loaded:
jQuery(function($) { 
 $("#logo img,#home img,#contact img").error(function() { 
var which_one = $(this).attr("src");
alert(which_one+" fail"); 

Open in new window

If I want to know if the image was successfully load, what changes I have to do?

Th best regards, JC

Avatar of undefined
Last Comment
Pedro Chagas

8/22/2022 - Mon