Skip to content

Instantly share code, notes, and snippets.

@troyscott
Created February 4, 2012 19:10
Show Gist options
  • Save troyscott/1739545 to your computer and use it in GitHub Desktop.
Save troyscott/1739545 to your computer and use it in GitHub Desktop.
jQuery Template
<!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