Checking if an image has loaded

0Comments
$('#theImage').attr('src', 'theimage.png').load(function() {  
alert('Image Has Loaded!');  
});