Team:Freiburg Bioware/jquery

From 2010.igem.org

(Difference between revisions)
m
Line 10: Line 10:
   $("img").wrap('<div class="img" />');
   $("img").wrap('<div class="img" />');
   $("img").after(function() {
   $("img").after(function() {
-
   return '<div>' + this.attr + '</div>';
+
   return '<div>' + this.attr("alt") + '</div>';
});
});

Revision as of 17:23, 11 October 2010