Created
April 4, 2009 03:01
-
-
Save cohitre/90089 to your computer and use it in GitHub Desktop.
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
... | |
<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