Answers for "stopped typing jquery"

1

stopped typing jquery

var timer = null;
$('#text').keydown(function(){
       clearTimeout(timer); 
       timer = setTimeout(doStuff, 1000)
});

function doStuff() {
    alert('do stuff');
}
Posted by: Guest on September-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language