how to check value is in array or not in jquery code example Example: jquery check value exists in array if ($.inArray('example', myArray) != -1) { // found it }