I think this should be the right method:
http://docs.jquery.com/Plugins/Validation/valid

$("#support").click(function(){
  if($("#myform").valid()) {
    alert("123");
  }
});

On 8 Okt., 09:31, IDEO <[EMAIL PROTECTED]> wrote:
> Here I have a form... the validation works great on keyup and submit.
> But when submit, I want to run a click function
>
>         $("#support").click(function(){
>                 alert("123");
>         });
>
> only when there is no error from the validation. It should give the
> alert message only when everything on the form is ok. How can I
> achieve this?

Reply via email to