Make sure an image has loaded properly


/ Published in: jQuery
Save to your folder(s)

courtesy Jean-Baptiste Jung


Copy this code and paste it in your HTML
  1. $('#myImage').attr('src', 'image.jpg').load(function() {
  2. alert('Image Loaded');
  3. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.