Reputation: 165
see the below code and fiddle. when I write something on skype and after finishing writing I hit the enter key of keyboard then it automatically focus the last input field.
I need to focus the next input field when hit the enter key from keyboard. i.e. Write something in linkedin input field and hit the enter key then facebook input field will focus.
another example: Write something in facebook input field and hit the enter key then twitter input field will focus.
here the jsfiddle
Upvotes: 1
Views: 136
Reputation: 685
Try http://jsfiddle.net/h1hecocm/1/
When You do just:
$("input.enters").focus();
jQuery get all input's with class enters and set focus to last one.
Upvotes: 2