Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript press tab key

var inputs = $(':input').keypress(function(e){ 
    if (e.which == 13) {
       e.preventDefault();
       var nextInput = inputs.get(inputs.index(this) + 1);
       if (nextInput) {
          nextInput.focus();
       }
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #press #tab #key
ADD COMMENT
Topic
Name
9+6 =