JSFiddle - React, Tailwind, and code Playground

HTML

<input value="" type="text">
<input value="" type="password">
<input type="checkbox">

JavaScript

$.expr[':'].is = function(a,b,c){
    return $(a).is(c[3])
}

console.log($('input[value=""]:is([type=text],[type=password]):first').focus());