Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this que开发者_StackOverflow社区stionTo see the example please visit the web page: spam
and click one photo you will see many photos appearing. How can I make it using JS or JQuery or what else? I will use .NET for active server pages.
One method would be something like this.
HTML:
<style>dd { display: none; }</style>
<dl>
<dt>Click me for images</dt>
<dd><img src=""></dd>
<dd><img src=""></dd>
<dd><img src=""></dd>
<dt>Click me for images</dt>
<dd><img src=""></dd>
<dd><img src=""></dd>
<dd><img src=""></dd>
</dl>
JavaScript (jQuery):
$('dt').live('click', function() {
$(this).nextUntil('dt').toggle();
});
精彩评论