/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//@dependency jQuery timeout = undefined; $("#id").keyup(function() { if(timeout != undefined) { clearTimeout(timeout); } var timeout = setTimeout(function() { timeout = undefined; //do it }, 900); });