/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('my_text_field').observe('keyup',function(event){ var element = this; if (this.timer) clearTimeout(element.timer); this.timer = setTimeout(function(){ alert("Nothing Pressed for 1000ms") },1000); return true; });