check the one array value is exist in second array jquery code example
Example: jquery check value exists in array
if ($.inArray('example', myArray) != -1)
{
// found it
}
if ($.inArray('example', myArray) != -1)
{
// found it
}