Array contains() or IndexOf in Jquery
To get index of or check if object on array Jquery use :
It returns the index of a value in an array. It returns -1 if the array does not contain the value.
- <code>$.inArray(value, array)</code>