Team:Freiburg Bioware/jquery

From 2010.igem.org

(Difference between revisions)
Line 6: Line 6:
<script type="text/javascript">
<script type="text/javascript">
-
$(document).ready(function(){
+
 
-
  alert("Hello World!");     
+
-
});
+
$(document).ready(function(){
$(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");
+
   //$("#klickmich").click(function(){
-
   });
+
  //  $("div.helloworld").css("background-color", "#FF0000");
 +
   //});
 +
 
});
});
</script>
</script>
 +
 +
</head>
</head>
</html>
</html>

Revision as of 10:56, 11 October 2010