Jump to content

HTML5 Form Validation - Can't Find Documentation and Need Help


unemployment

Recommended Posts

I have this basic form but I don't know how to validate it using the jQuery's form validation plugin.  It's not behaving properly when I click the submit button.  Usually on the full name field validation executes properly.  Is there something else I need to do because I am using HTML5?  Can you link me to documentation for this specific use?

 

I threw my latest build up on http://dev.jasonbiondo.com/contact.php

 

When you click submit and haven't filled out any information only the name field throws the error.  If you click around some more you can get the other errors to fire, but it's not firing all three errors like it should when the fields are empty. Any thoughts as to why this is?

 

JS

$("#contact_form").validate();

 

HTML

<form id="contact_form">

    <div>

        <input id="name" class="required" type="text" placeholder="Full Name">

    </div>

    <div>

        <input id="email" class="required email" type="text" placeholder="Email Address">

    </div>

    <div>

        <textarea id="message" class="required" placeholder="Message"></textarea>

    </div>

    <div>

        <input class="btn_primary" type="submit" value="Send">

    </div>

</form>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.