Is there a better way to deal with checking multiple values. It starts to get really busy when I have more than 3 choices.
if (myval=='something' || myval=='other' || myval=='third') {
}
PHP has a function called in_array() that’s used like this:
in_array($myval, array('something', 'other', 'third'))
Is there something like it in js or jquery?
Jquery.inArray()