prevAll() TD in a table
<p>How can I count the total of TD elements before a specific TD ?</p>

<pre><code>var eq = $('td.input.current').prevAll('td.input').length;
</code></pre>

<p>eq is the position of the TD that have the class current but this position is relative to his containing TR, in other word prevAll() is only usefull for the TD brothers but not cousins =/</p>
