Skip to navigation
How to delay a javscript keyup click, so it wont get fired all by each keyup but by small delay
20.09.14
jQuery('#mp_filter').keyup(function(e) { delay(function() {alert('Time elapsed!')}, 1000); }); var delay = (function() { var timer = 0; return function(callback, ms) { clearTimeout(timer); timer = setTimeout(callback, ms); }; })();
http://snipplr.com/view/49765/keyup-callback-delay/
Reply
Anonymous
Information Epoch 1732549816
Think parallel.
Home
Notebook
Contact us