JQuery retrieving index on hasClass
<p>Is it possible to get the index on the first instance of a hasClass? </p>

<p>For Example:</p>

<pre><code>$(".class").children().hasClass('classname').index();
</code></pre>

<p>Unfortunately this doesn't work.</p>
