Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to trigger a function after stop writing in input text jquery event

var x_timer;
$("#input-box"). keyup(function (e){
clearTimeout(x_timer);
var user_name = $(this). val();
x_timer = setTimeout(function(){
// callback_function();
console. log("user stopped");
}, 1000);
 
PREVIOUS NEXT
Tagged: #trigger #function #stop #writing #input #text #jquery #event
ADD COMMENT
Topic
Name
7+2 =