SHARE
TWEET

Untitled

a guest Jul 24th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#first_field').on('click', function(){
  2.   $('#second_field').focus();
  3.   $('#first_field').focus();
  4. });
  5.      
  6. $('#foo').on('blur',function(){
  7.         setTimeout(function(){
  8.             window.scrollTo(0,document.body.clientHeight);
  9.     }, 300);
  10.     });
  11.  
  12.     $('#foo').on('focus',function(){
  13.         setTimeout(function(){
  14.             window.scrollTo(0,100000);
  15.         }, 300);
  16.  
  17.     });
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