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>
).
Comments
Post a Comment