109
rated 0 times
[
113]
[
4]
/ answers: 1 / hits: 45532
/ 13 Years ago, fri, august 12, 2011, 12:00:00
I have an array of elements
[page=4, sortOrder=asc, datePosted=all-time]
Using javascript or jquery I want to find the index of the element which begins sortOrder=
. I will not know the full string of this element at compile time, just the sortOrder=
part.
I'm assuming that this can be done without the need to iterate over the array and perform item.match(sortOrder=)
, but maybe I am wrong.
Thanks for any help.
More From » jquery