Check jquery index
Is there a way to get me without a loop? how is e.ThisIndex?
$('#userContentImages li a').live('click', function (e) {
if (e.button != 0)
return false;
var objs = $('#userContentImages li a');
for(var i=0; i<objs.length; i++)
{
if($(this).get(0) == objs.get(i))
break;
}
//do stuff
return false;
});
+2
user34537
source
to share