JSFiddle - React, Tailwind, and code Playground

by Bryan Dellinger

HTML

<span>One</span>
<span>Two</span>
<span class="third">Three</span>
<span>Four</span>
<span>Five</span>

JavaScript

//$( "span.third" ).nextAll().css( "color", "red" );
$( "span:gt("+$( "span" ).index( $('.third'))+")" ).css( "color", "red" );