JSFiddle - React, Tailwind, and code Playground
by Pavlo
HTML
<body>
<div >2</div>
<div >2</div>
<div >2</div>
<div >3</div>
<div >4</div>
<div >5</div>
<div >3</div>
<div >r</div>
<div >2</div>
<div >3</div>
</body>
JavaScript
$.expr[':'].test = function(obj, index, meta, stack){
console.log(index);
return true; //just for testing
}
$(function (){$("div:test").text('3');});