JSFiddle - React, Tailwind, and code Playground
by David Thomas
HTML
<input class="is_valid" value="" />
<input class="is_valid" value="94" />
<input class="is_valid" value="some text" />
JavaScript
function isValid(evt) {
var charCode = (evt.which) ? evt.which : event.keyCode,
self = evt.currentTarget;
console.log(self.value);
return true;
}
$(document).on('keydown', '.is_valid', isValid);