Toggle block in jQuery
- by user201140
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>