title: How to detect 404 error in a url then set the url image to display:none using Jquery
body: <p>I have a table which repeats an image link to a file download for every row of data. I want to use Jquery or Javascript to detect if a image link returns a 404 error, meaning the file its trying to find doesn’t exist, then set the image link to <strong>display:none</strong> so its hidden.</p>
  
  <p>Any help is much appreciated!</p>
  
  <p>Jamie.</p>
  
  <p>---Edit---</p>
  
  <p>This is my url which needs to be set to hidden if it cant find the .igs file</p>
  
  <p><code>&lt;a href="/path/to/file.igs"&gt;&lt;img src="pic.jpg" alt="My Image Link"&gt;&lt;/a&gt;</code> </p>
  
  <p>Unfortunately I cannot utilize server-side processing.</p>