yanknudtskov
1/14/2016 - 2:14 PM

Replace missing images using jQuery

Replace missing images using jQuery

$('img').error(function(){
    $(this).attr('src', '/path/to/fallback-image.jpg);
    });