Skip to content

Instantly share code, notes, and snippets.

@dandiebolt
Created February 17, 2011 20:44
Show Gist options
  • Save dandiebolt/832642 to your computer and use it in GitHub Desktop.
Save dandiebolt/832642 to your computer and use it in GitHub Desktop.
test.html
<html>
<head>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript">
function doit() {
myid1.style.color = "red";
$("#myid2").css("color","blue");
$(myid3).css("color","green");
}
</script>
</head>
<body onload="doit()">
<div id="myid1">Hello World</div>
<div id="myid2">Hello Universe</div>
<div id="myid3">Hello Alternative Reality</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment