jQuery: getting the nth position of an object
<p>I have a div that contains checkboxes. I also have a function that accepts a jquery object parameter. It looks like this:</p>

<pre><code>function analyze_checkbox(cb) { ... }
</code></pre>

<p>Given this, is there a straightforward way to know the child position of the <strong>cb</strong> parameter? I was thinking of something like this:</p>

<pre><code>cb.parent().index(cb)
</code></pre>

<p>What is the proper way to do it?</p>

<p>Thanks,</p>

<p>Erwin</p>
