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'
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
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) {
"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
#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
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
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
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
8 matches
Mail list logo