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
Post a Comment