JSFiddle - React, Tailwind, and code Playground

HTML

<input>
<input type=text>

CSS

input { background: red; }

JavaScript

// duck-punched to do what we want:
jQuery.find.selectors.filters['text'] = function(elem) { return "text" === elem.type };

$(':text').css('background', 'lime');