Return to Snippet

Revision: 37880
at December 19, 2010 00:09 by phatograph


Initial Code
// Replace source
$('img').error(function(){
        $(this).attr('src', 'missing.png');
});

// Or, hide them
$("img").error(function(){
        $(this).hide();
});

Initial URL


Initial Description


Initial Title
Better Broken Image Handling

Initial Tags


Initial Language
jQuery