There was a thread that I've been searching for that someone shared how to collapse a div following a a header without using IDs or classes but programming jQuery to simply seek the first element after the trigger element of a type.
So for example I want to have all h2 elements collapse the first following div with the following HTML code...
The only problem I'm having right now is that the script toggles the div to collapse and then automatically expands the div element? The desired behavior would have the div not expand until the second click.
I tried slideToggle though it has a sort of pop effect at the beginning or ending of the animation. Not sure what (besides the pop) is supposed to be different between the two effects?
One more question, what rules can I use to restrict animation in specific instances? Thanks for your help!