title: Get index of clicked element in collection with jQuery
body: <p>How do I get the index of clicked item in the code below?</p>
  
  <pre><code>$('selector').click(function (event) {
      // get index in collection of the clicked item ...
  });
  </code></pre>
  
  <p>With Firebug I saw this: <code>jQuery151017197709735298827: 2</code> (I've clicked in the second element).</p>