Created
June 9, 2013 20:24
-
-
Save nastysloper/5745069 to your computer and use it in GitHub Desktop.
Slide toggle http://jsfiddle.net/nastysloper/v42EX/
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 id="tour"> | |
<h2>Paris, France Tour</h2> | |
<p>$2,499 for 7 Nights</p> | |
<button>See photos from our last tour</button> | |
<ul class="photos"> | |
<li> | |
<img src="/assets/photos/paris1.jpg"> | |
<span>Arc de Triomphe</span> | |
</li> | |
<li> | |
<img src="/assets/photos/paris2.jpg"> | |
<span>The Eiffel Tower</span> | |
</li> | |
<li> | |
<img src="/assets/photos/paris3.jpg"> | |
<span>Notre Dame de Paris</span> | |
</li> | |
</ul> | |
</div> |
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
.photos { | |
display: none; | |
} |
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
$(document).ready(function() { | |
$("#tour").on("click", "button", function() { | |
$(".photos").slideToggle(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment