JSFiddle - React, Tailwind, and code Playground

by Juri Rudi

HTML

<div>
<p>1</p>
<p>2</p>
<p id=tre>3</p>
<p>4</p>
<p>5</p>
</div>

JavaScript

$("#tre").nextAll().addBack().css( "background-color", "red" );