Q:

jquery check value exists in array

if ($.inArray('example', myArray) != -1)
{
  // found it
}
0
$.inArray( 5 + 5, [ "8", "9", "10", 10 + "" ] );
0

New to Communities?

Join the community