title: Move Cursor to next text Field pressing Enter
body: <p>I have multiple text fields in my form and I want when user enters data in one text field and press enter that the cursor moves to another text-field which is next to current text field. I visited some question but didn't find them useful.</p>
  
  <pre><code>$("#username").keypress(function (event) {
      alert("inside function");
      if(event.keyCode == 13) { 
          textboxes = $("input.username");
          debugger;
          currentBoxNumber = textboxes.index(this);
          if (textboxes[currentBoxNumber + 1] != null) {
              nextBox = textboxes[currentBoxNumber + 1];
              nextBox.focus();
              nextBox.select();
              event.preventDefault();
              return false; 
          }
      }
  });
  </code></pre>
  
  <p>this is my code which i have tried 
  an other thing that when the data entered in last text field then the form will submit on mouse click on the button not with enter press.</p>