jQuery: Catching an image load event error 404, can it be done?
I'm basically looping over a bunch of youtube video url's to get each video's id code. I then reiterate over all 'thumbnail' images in a list and replace the source with the youtube video thumbnail url. The problem I am currently running into is that if the video has been removed from youtube the resulting image source will not return a functioning image url, however the replace is still firing thus a broken image url is placed into the list. How can I get jQuery to detect whether the url is actually still working before replacing the initial image source with the thumbnail source? Here is my