JSFiddle - React, Tailwind, and code Playground
JavaScript
(function($){
// include this fix to make jQuery work in Firefox 4 + Greasemonkey or Scriptish
// mozMatchesSelector fix by Kambfhase
if( !$('<div>').is('div') && $('<div>')[0].mozMatchesSelector){
$.find.matchesSelector = function( node, expr ) {
try {
return node.mozMatchesSelector( expr);
} catch(e){}
return $.find(expr, null, null, [node]).length > 0;
};
}
})( jQuery);// you might need to add window or unsafeWindow here