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