Skip to content

Instantly share code, notes, and snippets.

@snaka
Created September 3, 2008 11:33
Show Gist options
  • Save snaka/8569 to your computer and use it in GitHub Desktop.
Save snaka/8569 to your computer and use it in GitHub Desktop.
My first simple example source for jQuery
<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