Answers for "check image exists status call"

0

check image exists status call

$.get(image_url)
    .done(function() { 
        // Do something now you know the image exists.

    }).fail(function() { 
        // Image doesn't exist - do something else.

    })
Posted by: Guest on February-18-2022

Browse Popular Code Answers by Language