title: Javascript to focus on the next input field
body: <p>I can't get this to work, please help. 
  I have a table where each TD has an input text field. I want that after the user press one letter, the focus goes to the next input text field in the next TD. My code it's not working... I'm using primefaces:</p>
  
  <pre><code>&lt;p:inputText value="#{officialVar.officialAnswer}"
      id="officialAnswer" maxlength="1"
      onblur="value=value.toUpperCase()"
      onkeyup="$(this).next('input').focus();" /&gt;
  </code></pre>
  
  <p>I have issued some alerts in the onkeyup and here are the results:</p>
  
  <pre><code>alert($(this));
      [object Object]
  alert($(this).value);
      undefined
  alert($(this).next('input'))
      [object Object]
  </code></pre>
  
  <p>How can I accomplish this?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong>: if I had 2 fields in the same TD, it would work.</p>