How do I get the index of clicked item in the code below?
$('selector').click(function (event) { // get index in collection of the clicked item ... });
With Firebug I saw this: jQuery151017197709735298827: 2 (I've clicked in the second element).
jQuery151017197709735298827: 2
$('selector').click(function (event) { alert($(this).index()); });
jsfiddle