Get index of currently focused input text field
<p>How do I get the index of the current input text field I'm currently in? I'm trying to jump to the next input field after pressing enter. This is what I've got:</p>

<pre><code> var index = $('input:text').index(this); 
 $('input:text')[nextIndex].focus();
</code></pre>

<p>But it's not going to the next one..</p>
