javascript email validation not working

This question already has an answer here:

  • How to validate an email address in JavaScript? 68 answers

  • var emailID = document.["myForm"]["email"].value;
                          ^^
    

    Syntax error. Dot-notation or Square-bracket-notation. Pick only one (per property).

    I'm surprised that Firebug / Chrome Developer Tools / Dragonfly / etc didn't give you a clear pointer to that when you were testing.

    链接地址: http://www.djcxy.com/p/16510.html

    上一篇: 什么是JQuery的相当于PHP的FILTER

    下一篇: JavaScript电子邮件验证不起作用