Answers for "jquery image onerror not working"

0

jquery image onerror not working

function imgError(image) {
    image.onerror = "";
    image.src = "/images/noimage.gif";
    return true;
}
<img src="image.png" onerror="imgError(this);"/>
Posted by: Guest on December-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language