title: set the focus to <select> element
body: <p>I have a form for sign up, the first <code>element</code> is the <code>textbox</code> and the second <code>element</code> is the <code>select</code>.</p>
  
  <p>When I press the Enter key, i want the focus set at the <code>select</code> element.</p>
  
  <pre><code>$('#newUserId').keypress(function(event){
      if (event.which == 13)
      $('#newUserId:first').focus();
  });
  </code></pre>
  
  <p>I have also looked around, and even <a href="https://stackoverflow.com/questions/5000475/how-to-set-the-focus-on-the-first-select-element-of-the-page-using-jquery" title="this question">this link</a> and <a href="https://stackoverflow.com/questions/27388472/set-focus-on-specific-select-box">this link</a> does not help, when i press enter key, it does nothing. but when I check to set the focus on other <code>textbox</code> element, it did change focus.</p>
  
  <p>My HTML Form:</p>
  
  <pre><code>&lt;form name='formCreateNewUser' id='formCreateNewUser' method='post' action=''&gt;
          &lt;label&gt; Create New User &lt;/label&gt; &lt;br /&gt;
             &lt;input autocomplete='off' name='newUserId' id='newUserId' class='newUser' 
                type='text' size='17' maxlength='17' placeholder='ID No.' 
          /&gt; &lt;span id='newUserIdResult'&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
          &lt;select name='newUserType' id='newUserType' class='newUser'&gt;
             &lt;option class='newUser' value=0&gt;User Type&lt;/option&gt;
             &lt;option class='newUser' value=1&gt;Student&lt;/option&gt;
             &lt;option class='newUser' value=2&gt;Teacher&lt;/option&gt;
             &lt;option class='newUser' value=5&gt;Admin&lt;/option&gt;
          &lt;/select&gt; &lt;br /&gt;&lt;br /&gt;
          &lt;input autocomplete='off' name='newUserPass' id='newUserPass' class='newUser' 
              size='17' maxlength='17' placeholder='Password' type='password' 
          /&gt; &lt;br /&gt;&lt;br /&gt;
          &lt;input autocomplete='off' name='newUserConfPass' id='newUserConfPass' class='newUser' 
             size='17' maxlength='17' placeholder='Confirm Password' type='password' 
          /&gt; &lt;br /&gt;&lt;br /&gt;
          &lt;input autocomplete='off' name='newUserFirstName' id='newUserFirstName' class='newUser' 
             size='17' maxlength='17' placeholder='First Name' type='text' 
          /&gt; &lt;br /&gt;&lt;br /&gt;
          &lt;input autocomplete='off' name='newUserMiddleName' id='newUserMiddleName' class='newUser' 
             size='17' maxlength='17' placeholder='Middle Name' type='text' 
          /&gt; &lt;br /&gt;&lt;br /&gt;
          &lt;input autocomplete='off' name='newUserLastName' id='newUserLastName' class='newUser' 
             size='17' maxlength='17' placeholder='Last Name' type='text' 
          /&gt; &lt;br /&gt;&lt;br /&gt;
          &lt;button name='newUserSubmit' id='newUserSubmit' class='operationstylebutton' type='button' &gt;Create User&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>