I'm doing appendTo and it keeps putting the error message between the label and input box? any ideas what i'm missing please? it should go in the #warnTitle span tag to the right of the input box
errorPlacement: function(error, element) { if (element.attr("id") == "title") { error.appendTo("#warnTitle"); } else error.insertAfter(element); }, <form id="frmAddTask" method="POST" action="taskmanager_db.php? action=insert-newtask"> <div> <label for="title">Title:<span class="required">❊</ span></label> <input type="textbox" name="title" id="title" class="text"/> <span id="warnTitle"></span> </div>