JSFiddle - React, Tailwind, and code Playground

HTML

<div id="toto">
Hello
</div>

JavaScript

$.extend($.expr[':'], {
        someOp: function(a, i, m, s) {
            var dist = parseInt(m[3]);
            return true;
        }
    });

$("#toto:someOp(12)").text("works ok");