Focus on next element on ENTER key in angularjs? -
in angularjs enter key has predefined functionality of submitting form , want change transfer focus next element of form have following directive working fine single row of table in form i.e"" not transferring focus next row of table , have multiple tables in form here directive
`app.directive('focusenter', function() {   return {     restrict: 'a',     link: function($scope,elem,attrs) {        elem.bind('keydown', function(e) {         var code = e.keycode || e.which;         if (code === 13) {           e.preventdefault();           elem.next().focus();                }       });     }   } });             `   how can ????
 
 
Comments
Post a Comment