JSFiddle - React, Tailwind, and code Playground

by Corey Frang

HTML

<input type="search">

JavaScript

jQuery.find.selectors.attrHandle['type'] = function(elem) { return elem.getAttribute('type'); };

alert([
    'search: ' + $('input[type="search"]').length, // 1
    'text: ' + $('input[type="text"]').length // 0
].join('\n'));