Hi there,

I have a form which is validated with the jQuery Validate PI.
The JS roughly looks as follows:

<code>
var validator = $("#contact_form").validate({
        rules: {
                name: {
                        required: true
                }
        },
        messages: {
                name: {
                        required: "Required field"
                }
        },
        errorElement: "span"
});

$(".myClass").click(function(){
         // validate but don't submit
});
</code>

What i want with the extra function, is to validate the form, but
don't submit it. So it will manage the error messages, but won't take
any further action. Also, i only want it to validate on myClass.click
after the user has already tried ti submit, just like Validate's
default behaviour.

Hope things are clear.

Many thanks,
Knal

Reply via email to