title: Jump to next field when maxlength reached
body: <p>I have two <code>&lt;p:inputMask&gt;</code> fields to save a phone number. I want to put the focus on the second field as soon as the <code>maxlength</code> of the first is reached.</p>
  
  <p>Here's my code</p>
  
  <pre><code>&lt;h:outputLabel value="DDD:" /&gt;
  
  &lt;p:inputMask mask="(99)"
               size="2"
               maxlength="2"
               value="#{cadastroFuncionarioMB.telefoneFuncionario.ddd}" /&gt;
  
  &lt;h:outputLabel value="Número:" /&gt;
  
  &lt;p:inputMask mask="9999-9999"
               size="11"
               maxlength="10"
               value="#{cadastroFuncionarioMB.telefoneFuncionario.numero}" /&gt;
  </code></pre>