in array in jqery code example Example: jquery in array function isInArray(value, array) { return array.indexOf(value) > -1; }