In the button's click handler:

                if ($("#myform").validate().form()) {
                        // submit form
                }


On Apr 22, 9:48 am, Brad <nrmlcrpt...@gmail.com> wrote:
> To be more specific, validation is working prior to clicking the
> button. For example I have a date field in the form and entering
> garbage will present an "enter a valid date" message, but I also have
> some fields that are simply required. Clicking the button doesn't
> appear to run any pre-submit validation.
>
> BTW, I'm totally new to this plugin.
>
> On Apr 22, 9:39 am, Brad <nrmlcrpt...@gmail.com> wrote:
>
> > I'm trying to integrate the Validation plugin into an existing
> > project. The forms use AJAX and the buttons are not of type 'submit',
> > but type 'button'. If I change the type to 'submit' I can see
> > validation works, but doing so will require other code changes. Is
> > there any way to get it to work with a 'button' button?

Reply via email to