Created
September 3, 2008 11:33
-
-
Save snaka/8569 to your computer and use it in GitHub Desktop.
My first simple example source for jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!-- My simple example source for jQuery --> | |
<head><title>test Js</title></head> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
log("loaded"); | |
$("#run").click(function() { | |
log("clicked"); | |
}); | |
}); | |
function log(msg) { | |
$("#console").prepend('<div>' + msg + '</div>'); | |
} | |
</script> | |
<body> | |
<h1>test Js - GET method in jQuery</h1> | |
<button id="run">RUN</button> | |
<div id="console"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment