[jQuery] preventing other events from firing in validate plugin (validate)

2010-01-04 Thread mattc
I need to block other events from firing on a form submission from
within the validate plugin's invalidHandler function. I'd like to call
stopImmediatePropagation on the current event, but I don't know how to
access that event. Here is a sample of the code I have:

$(document).ready(function() {

}


[jQuery] preventing other events from firing in validate plugin (validate)

2010-01-04 Thread mattc
I need to block other events from firing on a form submission from
within the validate plugin's invalidHandler function. I'd like to call
stopImmediatePropagation on the current event, but I don't know how to
access that event. Here is a sample of the code I have:

$(document).ready(function() {
  $(#myform).validate{
invalidHandler: function(form, validator) {
  // get current event and prevent it from propagating
  event.stopImmediatePropagation();
}
  }
}

Accidentally submitted this before I finished adding the code snippet.
Sorry for the double submission.