JSFiddle - React, Tailwind, and code Playground
by dactivo
HTML
How to choose all the elements of INPUT with style="color: #F20808"?
<form>
<input type="text" value="1">
<input type="text" value="2" style="color: #F20808">
<input type="text" value="3" style="color: #F20808">
<input type="submit" value="submit">
</form>
JavaScript
$('form').submit(function(){
alert($("input[style*=color][type*=text]").length);
// alert($("input[type*=text]").length);
});