Skip to content

Instantly share code, notes, and snippets.

@MikeRogers0
Created June 16, 2012 16:03
Show Gist options
  • Save MikeRogers0/2941785 to your computer and use it in GitHub Desktop.
Save MikeRogers0/2941785 to your computer and use it in GitHub Desktop.
An introduction to jQuery
<div id="object" class="empty"></div>
<script type="text/javascript" src="http://js.fullondesign.co.uk/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$("#object").removeClass('empty');
$("#object").addClass('full');
//]]>
</script>
<div id="object" class="empty"></div>
<script type="text/javascript" src="http://js.fullondesign.co.uk/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$("#object").html('This is the jQuery InnerHTML in action');
//]]>
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Shell</title>
</head>
<body>
<!– Put your content here –>
<script type="text/javascript" src="http://js.fullondesign.co.uk/jquery-1.3.2.min.js"></script>
<!– Include the jQuery Engine/Libary –>
<!– Add any jQuery plugins here –>
<script type="text/javascript">
//<![CDATA[
// Put your jQuery Here
//]]>
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment