Posted By

nd6 on 09/02/09


Tagged

javascript image jquery load


Versions (?)

jQuery run code after image loads


 / Published in: jQuery
 

URL: http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx

Taken from TVIDesign's 25 Excellent jQuery tips

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

Report this snippet  

You need to login to post a comment.