I'm sure you've seen this question many times, but i will asure you that this is different.
I want to know how to check if an image exists using the path to the image with a url variable.
I would like something like this: 
if ($('url').length ) {
    $(".mainContent").html("File exists");
} 
else
    $(".mainContent").html("File does not exists");`
Hope you can help me soon...
 
     
    