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(obj);
   return true; //just for testing
}
console.log($("div:test").length);
$(function (){$("div:test").text('3');});