I have a problem with jQuery task. I have to toggle 'ol' context after click on header:
My html:
<h3>Task</h3>
<ul>...</ul>
<ol>...</ol>
<h3>Second Task</h3>
...
My jQuery script:
$(document).ready(function() {
$('h3').click(function() {
$(this).nextUntil('h3').toggle();
})
})
My code toggle all context between h3 headers, but I need toogle just 'ol'. Thanks a lot for help.