I use the jquery validate plugin to check the number in the form , how can I put the returned error message under the enter button, I can not reach,
Here is my image with the problem and what I need, pls check - http://i.imgur.com/Gt5aNxs.png
Please suggest me put the error message in the custom div under the button, and not the default under.
Here is my code:
<section id="contact" class="content"> <div class="container"> <h2>Contact Form Demo</h2> <div class="row"> <div class="span12 contact-form"> <form action="mail.php" method="POST" class="form-horizontal contact-form" id="contact-form"> <fieldset> <div class="control-group"> <label class="control-label" for="inputPhone">Phone</label> <div class="controls"> <input class="input-80" name="phone" type="text" id="inputPhone" placeholder="inc. country & area code"> </div> </div> <div class="control-group"> <div class="controls"> <button type="submit" value="Send" class="btn" id="btn-place">Send!</button> </div> <div >place here</div> </div> </fieldset> </form> </div> </div> </div> </section> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="js/jquery.validate.min.js"></script> <script> </script>
source share