does javascript have an exists() or contains() function for an array
arrays, javascript, jquery
Solution
If you're using jQuery: jQuery.inArray( value, array )
Update: Pointed URL to new jQuery API
Problem
or do you just have to do a loop and check each element ?