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) { $(element).closest('.rowElem'

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

2009-12-15 Thread Gian-ava
ur errorPlacement should be something like 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, Gia

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-14 Thread Gian-ava
"Thanks! Your > request > has been sent." > } > }); > }, > errorPlacement: function(error, element) { > error.insertAfter(".rowElem"); > } > }); > > On Sun, Dec 13, 2009 at 20:52, Gian-ava wrote: > >&g

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

2009-12-13 Thread Gian-ava
#x27;#content').append("Thanks! Your > request has been sent." > } > }); > }, > errorPlacement: function(error, element) { > error.insertAfter(".rowElem"); > } >}); > }); > > On Sun, Dec 13, 2009 at 18:09, Gian-ava

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 f

[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 not after the input field. This is the HTML I get: Country

[jQuery] Validate plugin: insertAfter problem/question

2009-11-30 Thread Gian
I am using the jQuery Validation plugin in conjuction with the jqTransform plugin to style the form. I need to insert the error message after the "rowElem" div. I can do that, but the problem is that for each input field I get all the error messages form the other fields. Example: if I got 3 requi