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
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) {
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
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) {
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
}
});
},
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
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
7 matches
Mail list logo