Re: [jQuery] Validation Plugin:need help with errorPlacement

2009-12-15 Thread Gian-ava
this: errorPlacement: function(error, element) { $(element).closest('.rowElem').after(error); //the method closest get the closest parent with class rowElem }, On Mon, Dec 14, 2009 at 20:06, Gian-ava b...@stylozero.com wrote: Leonardo, I see. Firebug' error console says: Error

Re: [jQuery] Validation Plugin:need help with errorPlacement

2009-12-15 Thread Gian-ava
Oh, for posterity, in case anybody else find this useful, here is the complete code that worked fine for me. $(document).ready(function(){ $('#actionform').validate({ errorPlacement: function(error, element) {

Re: [jQuery] Validation Plugin:need help with errorPlacement

2009-12-14 Thread Gian-ava
, 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

Re: [jQuery] Validation Plugin:need help with errorPlacement

2009-12-14 Thread Gian-ava
Leonardo, I see. Firebug' error console says: Error: missing ) after argument list Line: 8, Column: 12 Source Code: } Strange, since I don't think this is correct. Also, it says: Error: syntax error Line: 7, Column: 30 Source Code: errorPlacement: function(error, element) {

Re: [jQuery] Validation Plugin:need help with errorPlacement

2009-12-13 Thread Gian-ava
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

Re: [jQuery] Validation Plugin:need help with errorPlacement

2009-12-13 Thread Gian-ava
} }); }, 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

[jQuery] Validation Plugin:need help with errorPlacement

2009-12-09 Thread Gian-ava
Hi, I am using the Validation Plugin from Bassistance (by Jörn Zaefferer) and I need to append the error message after the div class=rowElem not after the input field. This is the HTML I get: div class=rowElem label class=align for=country style=cursor: pointer;Country/label