JSFiddle - React, Tailwind, and code Playground
by gmcalab
HTML
<input id="test" type="text" onkeypress="checkvalue()" value="25"/>
JavaScript
$('#test').change(function(){
checkvalue(null);
});
function checkvalue(ctrl) {
alert('hi');
/*
if (parseInt(ctrl.value) < 25) {
// do whatever here..
alert('less than');
}*/
}