Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jan 19th, 2018 56 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function ajax_lookup( event ) {
  2.   // Perform an AJAX lookup on $(this).val();
  3. };
  4.  
  5. // Console logging happens on keyup, for every single key
  6. // pressed, which is WAAAY more often than you want it to.
  7. $('input').keyup( ajax_lookup );
  8.  
  9. // Console logging happens on window keyup, but only after
  10. // the user has stopped typing for 250ms.
  11. $('input').keyup( $.debounce( 250, ajax_lookup ) );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top