views:

95

answers:

1

What would be the jquery equivalent for list.detect in prototype?

+3  A: 

Returns the index of the first element with "value":

jQuery.inArray(value, array);
Tautologistics