title: jQuery validation plugin rule for value in group or in array
body: <p>Is there a jQuery validation rule to ensure that <code>access_id</code> is either 5, 6, or 8?  I suppose I could create my own rule called <code>inArray</code>, but would rather use a supported rule if it exists.</p>
  
  <pre><code>{
     "rules":{
        "access_id":{
           "inArray":[5,6,8]
        }
     }
  }
  
  
  $.validator.addMethod("inArray", function(value, element, params) {
      return this.optional(element) || (value in params);
      }, "Not an allowed selection.");
  </code></pre>