[jQuery] Re: Validate - How do I $.ajax without using the form plugin?

2009-07-14 Thread ButtersRugby
I figured out how to do it. Wasn't too hard. However, your solution is quite clean as well. Not sure which is better or what pitfalls there are to doing it my way vs. yours. submitHandler: function(form){ $('#submitSuggest').click(function

[jQuery] Re: Validate - How do I $.ajax without using the form plugin?

2009-07-14 Thread James
Here's one way to do it: $("#ajax_form").validate( [set validation options] ); $("#submit_btn").click(function() { var valid = $("#ajax_form").valid(); // returns true or false if (valid) { // do ajax submission } }); On Jul 14, 7:33 am, ButtersRugby wrote: > I am t