jQuery index of dom element?
<p>I have...</p>

<pre><code>element = document.elementFromPoint(x, y)
</code></pre>

<p>then I want to do something like...</p>

<pre><code>index = $(element).index()
</code></pre>

<p>The DOM element is a <code>li</code> and I need its position in the list. </p>

<p>Thanks!</p>

<p>EDIT: If what i'm doing is correct then something here is wrong, <a href="http://stackoverflow.com/questions/7814550/touch-events-over-two-divs/7814791">Touch events over two dom elements?</a></p>

<p>Any help is much appreciated.</p>
