The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

Good, Simple Validation Script

  • # November 19, 2009 at 2:20 pm

    What are your suggestions for a good, simple validation script for a contact form? There are so many out there, that I’m not quite sure which one to use. I don’t want to have to take forever to set it up. Just something that’s pretty straight forward. Any ideas? :?

    # December 14, 2009 at 8:06 am


    Please find the below mentioned link, … avaScript/
    Its very good script for validating the form.
    Please find it.

    # December 14, 2009 at 2:46 pm

    When checking email addresses I use this.

    function check_email() {
    var email_field = document.form_name.email_field.value;

    if( /b[w._-]+@[w-_.]+.[a-zA-z]{2,4}b/.test(email_field) ) {
    return true;
    }else {
    return false;

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed