javascript · Technical

JQuery script to change the alt attribute of all images


This is a small script, which change the alt attribute of all img (images) tags on the page: $(document).ready(function() { $(“img”).each(function(i) { this.alt = ‘your new alt text’; } ); }) Another complex script, which change the alt attribute of all img (images) tags on the page, to the title of the page, if the… Continue reading JQuery script to change the alt attribute of all images