javascript - How do I detect when the user changes between inputs pressing 'tab' using jQuery? -


i have view form. form has many inputs, , need detect when user moves between them (clicking or pressing 'tab').

for have this:

  $('input').on('click',function(){         //   }); 

but need detect if user focus on these input if doesn't use mouse.

thank you

how focus?

$('input').on('focus',function(){     //  }); 

the focus event sent element when gains focus. event implicitly applicable limited set of elements, such form elements (<input>, <select>, etc.) , links (<a href>).

https://api.jquery.com/focus/


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -