Check If Array Has Value Jquery Code Example


Example: jquery check value exists in array

if ($.inArray('example', myArray) != -1) {   // found it }

Comments