[jQuery] Re: showErrors and errorPlacement [validation]

2009-01-08 Thread morraine
Hello ive hackeds away and got a solution to get it to work : $(document).ready(function() { jQuery.validator.setDefaults({ errorPlacement: function(error, element) { error.appendTo( element.siblings('span.valmessage') )//, } }

[jQuery] Re: showErrors and errorPlacement [validation]

2009-01-08 Thread morraine
Hi jörn thanks for the reply; OK yes i have seen than demo and ive played about with it as well but it seems to only update the amount when you click the submit button. I want it to update on every validation event (keyup, focus etc) so that when you enter the correct information for 5 incorr

[jQuery] Re: showErrors and errorPlacement [validation]

2009-01-08 Thread Jörn Zaefferer
Take a look at this demo: http://jquery.bassistance.de/validate/demo/marketo/ The interesting part is here: $("form").bind("invalid-form.validate", function(e, validator) { var errors = validator.numberOfInvalids(); if (errors) { var