JSFiddle - React, Tailwind, and code Playground
HTML
<input type='text' class='text'/>
<input type='text' class='text'/>
<input type='button' id='xyz' value='click here'/>
<div> So if value of x.length is more than 0 then validation will be false<div>
JavaScript
$('#xyz').click(function(){
var x= $('.text').filter(function(){
return $(this).val()>100
});
alert(x.length)
})