REPLACE BROKEN IMAGES WITH A DEFAULT IMAGE code example
Example: REPLACE BROKEN IMAGES WITH A DEFAULT IMAGE
$('img').on('error', function (){
$(this).attr('src', '/path/to/image/default.png');
});
/*// OR hide
---------------------------*/
$('img').on('error', function(){
$(this).hide();
});