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