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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -