[jQuery] Disable submit button with Validation plugin

[jQuery] Disable submit button with Validation plugin


I need help with the Validation plugin. I have a form with a required
field. When the form is valid I want the form to submit and I also
want to disable the submit button. I have a function that does the
disabling, but I'm not sure how to call this function within the
"validate" method.
Here is my simple call the the validate method.
$(document).ready(function() {
$("#myForm").validate()
});
and here is my disable function --
jQuery.fn.diableOnSubmit = function() {
var input=this.find("input.submit")
input.click(function () {
$(this).attr("disabled", true);
$(this).attr("value", "Submitting...");
$(this).submit();
});
};
How do I combine the two together?
-Cheers,
Rich