Skip to content

Instantly share code, notes, and snippets.

@cohitre
Created April 4, 2009 03:01
Show Gist options
  • Save cohitre/90089 to your computer and use it in GitHub Desktop.
Save cohitre/90089 to your computer and use it in GitHub Desktop.
...
<div class="course" >
<div class="toggle-button">Show</div>
<div class="course-information">
<div>...and this is another subtitle</div>
<div>2009-05-23 04:00:00</div>
<div>Classroom LS B109</div>
<div width="20%">It's a proven fact that students learn best when they are engaged in class materials and discussion. Attend this interactive hands-on workshop to see how CPS Clicker technology from e-Instruction promotes student participation and engagement in the classroom.</div>
</div>
</div>
...
<script>
$(function(){
$(".toggle-button").click( function(){
$(this).parent().siblings().find(".course-information").hide();
$(this).parent().find(".course-information").show();
})
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment