Questions tagged [nextuntil]

Retrieve all subsequent siblings of every element until reaching the selected element, DOM node, or jQuery object, without including it.

Utilizing jQuery's nextUntil() method to target elements that are not paragraphs

In order to style all paragraphs that directly follow an h2.first element in orange using the nextUntil() method, I need to find a way to target any other HTML tag except for p. <h2 class="first">Lorem ipsum</h2> <p>Lorem ipsum</p> ...