🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Just another minimalist jQuery broken image fallback plugin that handles errors in image loading and displays an alternate image if your image fails to load.

image-fallback

Documentation

jQuery Broken Image

Provides support to add fallback images for broken images

Usage

Include the script jquery.brokenimage.js in the html page

Bind to image elements using

$('img').qImageFallback();

Define fallback images on img tags using data-fallback attribute

<img src="images/image-01.jpg" data-fallback="images/fallback.jpg" alt="" />

Check index.html for example/demo


You May Also Like