/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 $('#myImage').attr('src', 'image.jpg').load(function() { alert('Image Loaded'); });
URL: http://www.catswhocode.com/blog/10-jquery-snippets-for-efficient-developers
Comments
                    Subscribe to comments
                
                