jQuery/Javascript to replace broken images
- by Dan Lord
I have a web page that includes a bunch of images.
Sometimes the image isn't available so a broken image is displayed in the clients browser.
How do I use jQuery to get the set of images, filter it to broken images then replace the src?
--I thought it would be easier to do this with Jquery, but It turned out much easier to just use a pure javascript solution. i.e the one provided by Prestaul