Hi,
How can I count the total of TD elements before a specific TD ?
var eq = $('td.input.current').prevAll('td.input').length;
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 =/