If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Mar 2012
    Member #
    I was hoping someone could help me by explain what I am doing wrong. My form is created but does not validate. I tried adding the jQuery validate script but clearly I am doing something wrong, as the form still gets sent without fields filled in and no messages are displayed.

    <script type="text/javascript" src="jquery 1.7.2/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="js-jquery/jquery.validate.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function(e) {

    $.validator.messages.required = 'Required'

    rules: {
    name: 'required',
    name2: 'required',
    email: {
    required: true,
    email: true
    messages: {
    email: 'Please Enter a Valid Email'
    errorPlacement: function(error, element) {
    error.insertBefore( element )



    <div id="contact-area">
    <form method="post" action="mailform.php" name="contactForm" id="contactForm">
    <label for="name" span class="required">First : </span></label>
    <input type="text" name="name" id="first" />

    <label for="name2">Last :</label>
    <input type="text" name="name2" id="last" />

    <label for="email">E-mail :</label>
    <input type="text" name="email" id="address" />
    <br />

    <p><label for="messageme">Message :</label>
    <textarea name="messageme" rows="20" cols="20" id="messageme"></textarea>

    <input type="submit" name="submit" value="Submit" class="submit-button" />

    <div style="clear: both;"></div>

    <!-- end .content -->


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 10:53 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: