how to check contains in array in jquery code example
Example 1: find string in array javascript
var myarr = ["I", "like", "turtles"];
var arraycontainsturtles = (myarr.indexOf("turtles") > -1);
Example 2: jquery check if value is in array
$.inArray( 5 + 5, [ "8", "9", "10", 10 + "" ] );