input validate after user stops typing js code example
Example 1: stopped typing jquery
var timer = null;
$('#text').keydown(function(){
clearTimeout(timer);
timer = setTimeout(doStuff, 1000)
});
function doStuff() {
alert('do stuff');
}
Example 2: run javascript when typing
<input type="text" oninput="myFunction()">