title: Selecting next() input
body: <p>I have the following html:</p>
  
  <pre><code>&lt;div&gt;
      &lt;input type="text" maxlength="2" class="day-spin-month"&gt;&lt;/input&gt;
      &lt;span&gt;/&lt;/span&gt;
      &lt;input type="text" maxlength="2" class="day-spin-day"&gt;&lt;/input&gt;
      &lt;span&gt;/&lt;/span&gt;
      &lt;input type="text" maxlength="4" class="day-spin-year"&gt;&lt;/input&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am attempting to change focus to the next input. I have it working the following 2 ways. </p>
  
  <pre><code>$('.day-spin-month').on('keyup', function () {
      if (this.value.length &gt;= 2) {
         $(this).next().next().focus();
      }
  });
  $('.day-spin-day').on('keyup', function () {
      if (this.value.length &gt;= 2) {
         $(this).next().next().focus();
      }
  });
  </code></pre>
  
  <p>fiddle: <a href="http://jsfiddle.net/dan_vitch/JbQaN/1/" rel="noreferrer">http://jsfiddle.net/dan_vitch/JbQaN/1/</a></p>
  
  <pre><code>$('.day-spin-month').on('keyup', function () {
      if (this.value.length &gt;= 2) {
         var test=$(this).next()
         var test2=  $(test).next('input');
         test2.focus();
       }
  });
  $('.day-spin-day').on('keyup', function () {
      if (this.value.length &gt;= 2) {
          var test=$(this).next()
          var test2=  $(test).next('input');
          test2.focus();
      }
  });
  </code></pre>
  
  <p>fiddle: <a href="http://jsfiddle.net/dan_vitch/JbQaN/2/" rel="noreferrer">http://jsfiddle.net/dan_vitch/JbQaN/2/</a></p>
  
  <p>but it doesnt work this way:</p>
  
  <pre><code>$('.day-spin-month').on('keyup', function () {
      if (this.value.length &gt;= 2) {
         $(this).next('input').focus();
      }
  });
  $('.day-spin-day').on('keyup', function () {
      if (this.value.length &gt;= 2) {
         $(this).next('input').focus();
      }
  });
  </code></pre>
  
  <p>fiddle: <a href="http://jsfiddle.net/dan_vitch/rJwyE/2/" rel="noreferrer">http://jsfiddle.net/dan_vitch/rJwyE/2/</a></p>
  
  <p>I would like to use the way that is not working. I am not sure if its my selector that incorrect, or the way I understand next()</p>