Posted By

jackkeller on 11/01/11


Tagged


Versions (?)

Auto Title Tags from Alt Attributes


 / Published in: JavaScript
 

  1. $("img").each(function (index, elem) {
  2. var title = $(this).attr("alt");
  3. $(this).attr("title", title);
  4. });

Report this snippet  

You need to login to post a comment.