jquery: find out at which position (order) a particular element is among its neighbors
<p>I think this should be simple but I haven't been able to figure it out:</p>

<p>I have a container with a couple of children:</p>

<pre><code>&lt;div id='container'&gt;
  &lt;div id='one'&gt;some&lt;/div&gt;
  &lt;div id='two'&gt;random&lt;/div&gt;
  &lt;div id='three'&gt;text&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I want to be able to know the position of say element $('#two')... which should return 2 (as the element is the second of the container's children, $('#one').... should return 1 and so on.</p>

<p>Thanks a lot in advance,</p>

<p>Martin</p>
