Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Created August 22, 2012 14:03
Show Gist options
  • Save JeffCohen/3425920 to your computer and use it in GitHub Desktop.
Save JeffCohen/3425920 to your computer and use it in GitHub Desktop.
jQuery Core + jQuery UI
<h1>Welcome to Week 9</h1>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js">
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("h1").on("click", function() {
$("p").toggle();
});
});
</script>
<p>Baseball</p>
<p>Hockey</p>
<p>Football</p>
<p>Hockey</p>
<p>Soccer</p>
<p>Hockey</p>
<p>Ruby</p>
<p>HTML</p>
<p>CSS</p>
<p>Javascript</p>
<p>HAML</p>
<p>SASS</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment