Hi Jorn,

I have found where I was wrong.

Actually I was calling the whole function at onsubmit of my form while
this function is automatically called on the submit of form itself so
I just need to place the code on my form and not at onsubmit.

Second if I write the code directly on the form, in that case I need
to modify data call from
data: $(this.elements).serialize(),  to
data: $
(document.getElementById("UserRegisterForm").elements).serialize(),

So after these two changes All works fine.

Thanks.
Manish

On Feb 28, 1:42 am, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> manishschrieb:> Hi Jorn,
>
> > Thanks Again. Thanks a million.
>
> > Really great! It works and works exactly as I wanted it to.
>
> > Just one issue left(Probably I am still missing something), When I
> > click the submit button, nothing happens for the first time, and from
> > the second click onwards it works fine.
>
> > So, the first click does not fire the validate event. What can be the
> > reason for that? The code that worked is exactly as you showed above.
>
> No idea, I'd need to see your page to help with that.
>
> Jörn

Reply via email to