Created
February 4, 2012 19:10
-
-
Save troyscott/1739545 to your computer and use it in GitHub Desktop.
jQuery Template
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>jQuery Template</title> | |
</head> | |
<body> | |
<p></p> | |
<!-- | |
Use the most recent version of jQuery | |
--> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> | |
<script> | |
(function($){ | |
console.log('Start using jQuery ...'); | |
// Simple Chaining example | |
$('p').text('jQuery Template') | |
.css('background', 'lightgrey') | |
.css('color', 'navy'); | |
})(jQuery); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment