Leonardo, thanks for your interest in my case. I've tried out the code with the debug option. I just don't know what the debug function will generate and where I need to look to see the result.
Otherwise, again, your code doesn't get validation to work. This one do 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>") } }); } }); }); And, as I mention in my first entry, when I tried to use the error.insertAfter function, I got what I wanted, only I got for each field the error messages of all other fields as well. Probably something to do with the place where I put the function in the code. Leonardo K wrote: > > 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. >> >> > > -- View this message in context: http://old.nabble.com/Validation-Plugin%3Aneed-help-with-errorPlacement-tp26719238s27240p26778043.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.