/ Published in: jQuery
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.
phatograph on 12/19/10
2 people have marked this snippet as a favorite
// 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.