jQuery check image file exists
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/3327655/jquery-check-if-image-exists">jQuery: Check if image exists</a><br>
  <a href="http://stackoverflow.com/questions/92720/jquery-javascript-to-replace-broken-images">jQuery/Javascript to replace broken images</a>  </p>
</blockquote>



<p>I need to check if an image file exists and replace it with a default image in case the image does not exist on the server. Please let me know how can this be done using jQuery.</p>
