Something Wrong With My jQuery

I Am trying to get the value of a hidden field with an id of #testid and if it matches any one of the values (501,502,503,or505) in the query display a hidden div (#viewOthers), but the following code is not working:


if($("#testid").val() === "501", "502" , "503", "505"){
 $('#viewOthers').show();
}

Can someone help with this simple jQuery that has me boggled?

Thanks!!

Try using jQuery’s inArray() method.