How do I remove the last three items (which have the same class), after a specific element (p#heading)?
<p id="heading">HEADING</p>
<p class="txt"></p>
<p class="txt"></p>
<p class="txt"></p>
<p class="txt"></p>
<p class="txt"></p>
<p class="txt"></p>
Thanks already!
This matches
.txtelements afterp#headingand slices the selection to the last three in the matched set.