get position (index) of td element identified by class name
<p><br/>
i have this code</p>

<pre><code>&lt;tr id="3" class="gradeA odd focus row_selected"&gt;
    &lt;td class="center"&gt;Kids Footwear 2&lt;/td&gt;
    &lt;td class="sorting_1 center focus"&gt;200&lt;/td&gt;
    &lt;td class="center"&gt;50&lt;/td&gt;
    &lt;td class="center"&gt;200&lt;/td&gt;
    &lt;td class="center"&gt;30-34&lt;/td&gt;
    &lt;td class="center"&gt;234-343&lt;/td&gt;
    &lt;td class="center"&gt;200&lt;/td&gt;
    &lt;td class="center"&gt;25&lt;/td&gt;
    &lt;td class="center"&gt;1.23&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>i want to fetch the index value of <code>&lt;td&gt;</code> element which contains the class <code>focus</code></p>

<p>so if within the <code>&lt;td&gt;</code> element the focus class is set on </p>

<pre><code>first `&lt;td&gt;` then return 0
second `&lt;td&gt;` then return 1
third `&lt;td&gt;` then return 2 
</code></pre>

<p>and so on.how do i go with this in jQuery?</p>

<p>thank you.</p>
