Saturday, 6 May 2017

Remove image if image not exists

To Remove image if image not exists or "src" is not correct



$(function(){
    $("img").on("error",function(){
        $(this).remove();
    })
})


banner
Previous Post
Next Post

0 comments: