[Solved] jQuery-line $(this).nextAll(‘.toggled:first’) works in Stack Snippet and JSFiddle, but not on site
[ad_1] The nextAll() function only checks for elements on the same or deeper node-level in the DOM. So your code will work with the following HTML structure: The <a class=”togglerLink” href=”#link”>link</a> here, has a destination inside the Toggler. <div class=”toggled”> <span id=”link” style=”color:green”>Link-destination.</span> </div> But not with something like this: <div> The <a class=”togglerLink” href=”#link”>link</a> … Read more