With jQuery you can watch for the error when the browser can't find an image - then do what you want with it 🙂
$('img').error(function(){ $(this).attr('src', 'missing.png'); }); //or $('img').error(function(){ $(this).hide(); });
With jQuery you can watch for the error when the browser can't find an image - then do what you want with it 🙂
$('img').error(function(){ $(this).attr('src', 'missing.png'); }); //or $('img').error(function(){ $(this).hide(); });