Try this: errorPlacement: function(error, element) { error.appendTo(element.prev()); }
Jörn On Thu, Dec 11, 2008 at 3:30 PM, knal <knalp...@gmail.com> wrote: > > Hi there, > > I'm using Validate on my website, but i'm having difficulties with the > errorPlacement. > > In simple a part of my form looks like this: > > <label for="email">E-mail</label><div class="warn">*</div> > <input type="text" name="email" id="email" /> > > Validation works fine, but i can't get the message to display inside > '<div class="warn">*</div>'. > > The following places the text immediatly before the element: > > errorPlacement: function(error, element) { > error.insertBefore(element); > } > > Any help would be greatly appreciated. > > Greetings Knal. >