jQuery fans blog and community sharing news, plugins, video tutorials, demos and more.

Use jQuery to Replace Broken Images using AJAX

Expanding on my previous post about detecting and removing broken images I have delved further into the realms of using jQuery to replace broken images using AJAX.

Continue reading →

jQuery Detect and Hide Broken Images

jQuery code snippet to either display a default image for those that are broken or detect and hide all broken images. Hide all those red crosses! ;) // Replace source $(’img’).error(function(){         $(this).attr(’src’, ‘missing.png’); }); // Or, hide them $("img").error(function(){    …

Continue reading →

scroll to top