/ Published in: jQuery

URL: http://css-tricks.com/snippets/jquery/better-broken-image-handling/
Expand |
Embed | Plain Text
// Replace source $('img').error(function(){ $(this).attr('src', 'missing.png'); }); // Or, hide them $("img").error(function(){ $(this).hide(); });
You need to login to post a comment.