Try to use the debug:true option to find what's going on. Check if the form has the id=actionform.
$('#actionform').validate({ debug:true, submitHandler: function(form) { $(form).ajaxSubmit({ success: function() { $('#actionform').hide(); $('#content').append("<p class='thanks'>Thanks! Your request has been sent.</p>" } }); }, errorPlacement: function(error, element) { error.insertAfter(".rowElem"); } }); On Sun, Dec 13, 2009 at 20:52, Gian-ava <b...@stylozero.com> wrote: > > Hi Leonardo, > > Thanks for answering. > > Unfortunately, the validation doesn't work at all with the code you > provided: the form is sent even if the required fields are empty. > > Any hint? > > > Leonardo K wrote: > > > > This should work: > > > > $(document).ready(function(){ > > $('#actionform').validate({ > > submitHandler: function(form) { > > $(form).ajaxSubmit({ > > success: function() { > > $('#actionform').hide(); > > $('#content').append("<p class='thanks'>Thanks! > Your > > request has been sent.</p>" > > } > > }); > > }, > > errorPlacement: function(error, element) { > > error.insertAfter(".rowElem"); > > } > > }); > > }); > > > > On Sun, Dec 13, 2009 at 18:09, Gian-ava <b...@stylozero.com> wrote: > > > >> > >> Oh c'mon, nobody who can helo me out with this? > >> > >> Nobody who can figure out how to code the right errorPlacement to place > >> the > >> error label where I need it? > >> -- > >> View this message in context: > >> > http://old.nabble.com/Validation-Plugin%3Aneed-help-with-errorPlacement-tp26719238s27240p26769256.html > >> Sent from the jQuery General Discussion mailing list archive at > >> Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://old.nabble.com/Validation-Plugin%3Aneed-help-with-errorPlacement-tp26719238s27240p26770633.html > Sent from the jQuery General Discussion mailing list archive at Nabble.com. > >