Return to Snippet

Revision: 41716
at February 22, 2011 22:31 by coder_


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

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

Initial URL
http://css-tricks.com/snippets/jquery/better-broken-image-handling/

Initial Description

                                

Initial Title
Broken image detection with jquery

Initial Tags
jquery

Initial Language
jQuery