Grow your CSS skills. Land your dream job.

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

    Hello,

    Please find the below mentioned link,
    http://www.devarticles.com/c/a/JavaScri … 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.

    Code:
    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.

*May or may not contain any actual "CSS" or "Tricks".