JSFiddle - React, Tailwind, and code Playground

by ajpiano

HTML

<div class="previous"></div> 
<div class="next">
    <p>This is the first text block</p>
    <p>This is the second text block</p>
</div>

JavaScript

$(".previous + .next p:eq(0)").css("color", "red");