title: Is there anyway to find out if the appended tag gets 404 error or not by using Java Script or jQuery?
body: <p>I'm working on Spring MVC Web project with JSP.
  I made a function that users attach an image, and add image tag to a certain area.</p>
  
  <p>but it requires 3 to 5 seconds for image to be uploaded on Server, so the appended image tag doesn't get 404 error.</p>
  
  <p>I'm thinking to repeat adding the image tag till the image to be uploaded on server.</p>
  
  <p>Is there anyway to find out if the tag gets 404 error by using Java Script or jQuery?</p>
  
  <p>Any help towards finding a solution to this problem would be greatly appreciated.</p>