validate plugin - use twice with different options on same form?

validate plugin - use twice with different options on same form?

How can I use the same form with two distinct sets of validation options? From what I can tell the following isn't possible because validate caches the validator object inside the $("#frm1").data() object. What's the best way to clear this?

I tried this:
  1. // first call just validates for an ajax call that just changes the display
  2. if($("#frm1").validate(options1).form()) {
  3.   // do ajax call and update display
  4. } else {
  5.   // reset form showing errors
  6. }

  1. // second call is reached only after 1st is validated successfully
  2. if( $("#frm1").validate( options2).form()) {
  3.   // submit form, but really only care about half of the fields
  4. } else {
  5.   // reset form showing errors
  6. }

It seems like options2 don't completely overwrite options1. What's the best way to clear out a form's validate object data so I can pass it a whole new set of options?