Hello,
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 display:none so its hidden.
Any help is much appreciated!
Jamie.
---Edit---
This is my url which needs to be set to hidden if it cant find the .igs file
<a href="/path/to/file.igs"><img src="pic.jpg" alt="My Image Link"></a>
Unfortunately I cannot utilize server-side processing.