On keyboard next button move to next input field


I am not able to move to next field in a form through keyboard next button. Please help on this.


Same here!
Is there any way to accomplish this?



Yes, I’ve ran into some issues about this “next button”.
Sometimes the user was unable to enter information. We had to hide the keyboard and then click on the input again to edit.


All you need to do is identify the input, selector and textarea elements. Use following directive it’ll solve your probkem, I know it’s late but it’s for the other who may run into same issue.

app.directive(‘focus’, function () {
return {
restrict: ‘A’,
link: function ($scope, element, attrs) {

        element.bind('keydown', function(e) {
          var code = e.keyCode || e.which;
          if (code === 13) {
                var pageElements = document.querySelectorAll('input, select, textarea'),
                    element = e.srcElement
                    focusNext = false,
                    len = pageElements.length;
                for (var i = 0; i < len; i++) {
                    var elem = pageElements[i];
                    if (focusNext) {
                        if (elem.style.display !== 'none') {
                    } else if (elem === e.srcElement) {
                        focusNext = true;


I’ve updated existing Fiddle is here… http://jsfiddle.net/Y2XLA/414/