call function when start typing jquery 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()">