Find the next input field and set focus if it is empty- jquery
<p>i have form with many input fields like this,</p>

<p><a href="http://jsfiddle.net/WPDF9/1/" rel="nofollow">http://jsfiddle.net/WPDF9/1/</a></p>

<p>i am trying to loop the element which has name distanceSlabCost </p>

<pre><code>$(":text[name^=distanceSlabCost]").each(function(i){
    var curTxtBox = $(this);
     var nextTxtBox =       // find the next text field (?)
     var nextTxtFieldId      // find the id of next text field  (?)

 });
</code></pre>

<p>How to get the id of the next textField element there?
also ,there if the value of next field is empty set focus to that field.</p>
