jQuery.inArray() - eclipse tells me this function is not defined
Posted
by Ankur
on Stack Overflow
See other posts from Stack Overflow
or by Ankur
Published on 2010-05-08T16:06:04Z
Indexed on
2010/05/08
16:08 UTC
Read the original article
Hit count: 249
I have used the jQuery inArray function, but Eclipse tells me that this function is undefined. I don't understand how this can be so if it comes from the jQuery API.
preId is an integer, and queryPreds is an array.
if($.inArray(preId, queryPreds) != -1){
// code in here
}
© Stack Overflow or respective owner