Detect Image Loading Error with jQuery
The following JavaScript code shows how to detect image loading error using jQuery. It uses bind to attach a handler to the “error” event for all image elements. Using ajax, we can log or handle such events. Suppose we have …