Response title
This is preview!
I try to use jQuery validation with a wicket ajax button. The wicket ajax call in in the onclick attribute of the button. To call the jQuery validation before the ajax submit I add “if(!$('.register').valid()) { return false;}” in front of the onclick attribute. So the onclick looks like onclick=”if(!$('.register').valid()) { return false;}; var wcall=wicketSubmitFormById(…”
With this the form validation works.
So now the form is not send to the server, but the wicket ajax statement is not called. How can I manage that functions after the jQuery validator call (if(!$('.register').valid()) { return false;};) are processed?
Thanks
Gerrit
© 2013 jQuery Foundation
Sponsored by and others.