Toggle block in jQuery
Posted
by user201140
on Stack Overflow
See other posts from Stack Overflow
or by user201140
Published on 2010-04-28T21:33:44Z
Indexed on
2010/04/28
21:37 UTC
Read the original article
Hit count: 312
I'd like to click a header link and have the block directly underneath hide or show (with slideToggle)
Thanks
<div class='header'><a href='#'>Header</a></div>
<div class='block'>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
</div>
<div class='header'><a href='#'>Header</a></div>
<div class='block'>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
</div>
<div class='header'><a href='#'>Header</a></div>
<div class='block'>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
<div class='test>Some Text</div>
</div>
© Stack Overflow or respective owner