javascript - Move validation message to a new place -


<p class="section requiredtext">some text<br /> <textarea class="title required" id="foo" name="foo"></textarea> </p> 

how jquery validate show "required field" error message on same line "some text" title. tried few things, cant right. lot.

$('form').validate({     errorplacement: function(error, element) {         error.prependto(element.parent());     } }); 

Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -