JSFiddle - React, Tailwind, and code Playground
HTML
<p>sdfd</p>
<p>sdfd</p>
<p>sdfd</p>
JavaScript
$(function(){
$('p').not(":nth-child(1)").not(":nth-child(2)").css("color", "red");
});
<p>sdfd</p>
<p>sdfd</p>
<p>sdfd</p>
$(function(){
$('p').not(":nth-child(1)").not(":nth-child(2)").css("color", "red");
});