Using Javascript/jQuery or a CSS selector, how would I target elements that come after a specific element? To be clear, I don't mean directly after (adjacent to), I mean any and all matching elements that exist further down the page.
Imagine a group of
<p>
<p>Lorem</p>
<p id="special">Ipsum</p>
<p>Dolor</p>
<p>Sit</p>
<p>Amet</p>
<p>
p#special
$('p#special::allAfter p').each(...
nextAll()
is a jQuery function that you are looking for.
See this documentation:https://api.jquery.com/nextAll/