check the index jquery
- by acidzombie24
Is there a way to get i without looping? like 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;
});