Sam Collett schrieb: > You could probably use CSS for that, but before you do, errorPlacement > needs to change (i.e. don't add the <br>) > > errorPlacement: function(error, element) { > $(element).before(error); > }, > > And your CSS: > > label.error { > position: relative; > margin-top: -1em; > } > > The problem with that is that it may obstruct some text or an input > above (without seeing how your page looks, there is no way to know). Sam, keep in mind that the element is already inside the document, but the error label is not. And both are jQuery objects, so this should work:
errorPlacement: function(error, element) { error.insertBefore(element); } -- Jörn Zaefferer http://bassistance.de _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/