css hide image if not found
<!-- hide image if not find -->
<img src="image.png" onerror="this.style.display='none'"/>
<!-- show image after load -->
<img src="image.png" style="display: none" onload="this.style.display=''">
css hide image if not found
<!-- hide image if not find -->
<img src="image.png" onerror="this.style.display='none'"/>
<!-- show image after load -->
<img src="image.png" style="display: none" onload="this.style.display=''">
HIDE BROKEN IMAGES
$('img').on('error', function(){
$(this).hide();
});
/*// OR replace
---------------------------*/
$('img').on('error', function (){
$(this).attr('src', '/path/to/image/default.png');
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us