[jQuery] Re: Trying to Validate a Form

2009-07-23 Thread Hayden Hancock
Technically, can you just put the alert message inside the submitHandler option? For example: $("#form").validate({ submitHandler: function(form) { $(form).ajaxSubmit({ success: function() { alert("Thank you for your comment!")}, clearForm: true

[jQuery] Re: Trying to Validate a Form

2009-07-23 Thread Jörn Zaefferer
You've got an error in the second selector, a missing #. Try this: $("#submit").validate({ submitHandler: function(form) { $(form).ajaxSubmit(); } }); Jörn On Thu, Jul 23, 2009 at 3:22 PM, Nick wrote: > > Hi, > > I am currently trying to validate a form before sendi