Okay, I am trying to get this set of information to hide individually.
<img class=arrow src=images/navigation/arrowright.png>
<H2>More Information</H2>
<div class=box>
<h2>Bibendum Magna Lorem</h2>
<p>Cras mattis consectetur purus sit amet fermentum.</p>
</div>
<img class=arrow src=images/navigation/arrowright.png>
<H2>A Second Group of Information</H2>
<div class=box>
<h2>Bibendum Magna Lorem</h2>
<p>Cras mattis consectetur purus sit amet fermentum.</p>
</div>
It works when I type this:
$(.arrow).click(function() {
$(this).next().next().slideToggle();
});
but not when I do this:
$(.arrow).click(function() {
$(this).next('.box').slideToggle();
});
What is happening that makes the second option not work? I've been at it for days and can't bloody figure it out! I appreciate your input!