JSFiddle - React, Tailwind, and code Playground

by djesse

HTML

<div id="test">content</div>

JavaScript

$(document).ready(function(){
  
  // get jQueery version string ...
  console.log($().jquery);
  
  // create custom selector (jQuery 1.7.x)
  jQuery.extend(jQuery.expr[':'], {'custom-hover': function(){return true;}});

  // selection tests ...
  console.log('test 1:', $('#test:hover'));
  console.log('test 2:', $('#test:custom-hover'));

});