jQuery element index
<p>I have a table full of tabular data.  I need to find the index of a column(cell) in the table.</p>

<p>For example:</p>

<pre><code>&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;Column1&lt;/td&gt;
&lt;td&gt;Column2&lt;/td&gt;
&lt;td&gt;Column3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;foo&lt;/td&gt;
&lt;td&gt;bar&lt;/td&gt;
&lt;td&gt;foobar&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

function TestIndexOf(someTD)
{
$(someTD) // what's my column index?  
}
</code></pre>
