jQuery's delegate() method, index number of the current element?
<p>Using jQuery's delegate() method, can I get the index number of the current element?</p>

<p>For example:</p>

<pre><code>$('#tracks').delegate('.track-item', 'click', function(e) {
    e.preventDefault();
    alert($('.track-item').index(this));
});
</code></pre>

<p>Does anyone have an elegant solution to this?</p>
