Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change focus to next field jquery after enter

$(".inputs").keyup( function () {

    if (this.value.length == this.maxLength) {
    var n=$(this).next('.inputs');
    n.focus();
   if(n.val().length==n.prop('maxlength')) n.next('.inputs').focus(); 
    }

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #focus #field #jquery #enter
ADD COMMENT
Topic
Name
9+3 =