Team:Freiburg Bioware/jquery
From 2010.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
$("img").each(function() { | $("img").each(function() { | ||
- | $(this).wrap('<div class="img" />'); | + | title=$(this).attr("class"); |
+ | $(this).wrap('<div class="img ' + title + '" />'); | ||
}); | }); | ||
$("img").after(function() { | $("img").after(function() { |
Revision as of 15:02, 18 October 2010