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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -