Team:Freiburg Bioware/jquery

From 2010.igem.org

(Difference between revisions)
Line 9: Line 9:
   alert("Hello World!");       
   alert("Hello World!");       
});
});
-
 
+
$(document).ready(function(){
-
$("img").wrap('<div class="img" />');
+
  $("img").wrap('<div class="img" />');
-
$("img").after('<div>Test</div>');
+
  $("img").after('<div>Test</div>');
 +
  $("#klickmich").click(function(){
 +
    $("div.helloworld").css("background-color", "#FF0000");
 +
  });
 +
});
</script>
</script>
</head>
</head>
</html>
</html>

Revision as of 10:50, 11 October 2010