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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -