jQuery Set Image TITLE from ALT Tag

This is a super-useful jQuery Script that gets the Image Title from the ALT Tag if no title is set with a fall-back to the image src. jQuery(document).ready(function($) { $(“img:not([title])”).each(function() { if($(this).attr(“alt”) != ”) $(this).parent().attr(“title”, $(this).attr(“alt”)); else $(this).parent().attr(“title”, $(this).attr(“src”)); }); }); view rawjQuery Set Image TITLE from ALT Tag hosted with ❤ by GitHub Benefits of getting the Image Title …

About Slick Media

Glenn Eastland formed Slick Media in 2005 and has been at the helm for the duration. So when you work with Slick Media you are first & foremost working with him. He is a multi-disciplined Front-End Web Designer / Developer, Media Creative, Branding & Marketing Expert and budding App Developer. Glenn has a carefully picked team of stand-out Developers & …