jQuery Quick Start

This is an easy way to set up your html page for jQuery.

hello.html:
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<script>
$( document ).ready( function() {
    alert( 'hello world' );
});
</script>
</head>
<body>
<p>Hello World</p>
</body>
</html>

No comments:

Post a Comment