106
rated 0 times
[
108]
[
2]
/ answers: 1 / hits: 21576
/ 12 Years ago, wed, may 2, 2012, 12:00:00
I'm trying to get a location of an element in a jQuery set.
I want to be able to do something like this:
$('ul').find('a').indexOf('.active');
And get the location of the .active
in the set of a
's.
Is there something like an indexOf()
function for jQuery? The index()
method doesn't work
More From » jquery