Your Ad Here

Posted By

adambundy on 12/15/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

adambundy
eivind


Make sure an image has loaded properly


 / Published in: jQuery
 

courtesy Jean-Baptiste Jung

  1. $('#myImage').attr('src', 'image.jpg').load(function() {
  2. alert('Image Loaded');
  3. });

Report this snippet  

You need to login to post a comment.