JSFiddle - React, Tailwind, and code Playground

by gchoken

HTML

<ul>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>    
</ul>

JavaScript

$(function(){
    $('ul li:not(:nth-child(3n))').text('new');
});