/ Published in: jQuery
grabs image alt or src and appends it to a title
Expand |
Embed | Plain Text
$("img:not([title])").each(function() { if($(this).attr("alt") != '') $(this).parent().attr("title", $(this).attr("alt")) else $(this).parent().attr("title", $(this).attr("src")); });
You need to login to post a comment.
