Team:Freiburg Bioware/jquery

From 2010.igem.org

(Difference between revisions)
Line 9: Line 9:
$(document).ready(function(){
$(document).ready(function(){
   $("img").wrap('<div class="img" />');
   $("img").wrap('<div class="img" />');
-
   $("img").after('<div>' + this.attr(alt) + '</div>');
+
   $("img").after(function() {
 +
  return '<div>' + this.attr + '</div>';
 +
});
   //$("#klickmich").click(function(){
   //$("#klickmich").click(function(){

Revision as of 17:21, 11 October 2010