JSFiddle - React, Tailwind, and code Playground

by tomgrohl

HTML

<ul id="colorlist">
    
    <li>Test</li>
    <li style="display: none">Test</li>
    
</ul>

CSS

.first-column{
    color: orange;
}

JavaScript

$('#colorlist li:visible:nth-child(15n+1)' ).addClass('first-column');