[jQuery] [validate] Triggering Validation using a button instead of submit
Hi There,
I've been using the validation plug in for a while now and I love it,
but I am stuck on something.
I am trying to validate a form using:
<input type="button" id="submit" name="submit" value="Submit" />
instead of the usual:
<input type="submit" id="submit" name="submit" value="Submit" />
I tried using:
var validator = $("#sourcing").validate();
$("#submit").click(function() {
validator.form();
});
to do the validation but that doesn't do anything at all. Has anyone
been able to figure this out?
Thanks,
Justin