Email validation using jQuery

后端 未结 30 2202
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 16:52

I\'m new to jQuery and was wondering how to use it to validate email addresses.

30条回答
  •  -上瘾入骨i
    2020-11-22 17:37

    You can create your own function

    function emailValidate(email){
        var check = "" + email;
        if((check.search('@')>=0)&&(check.search(/\./)>=0))
            if(check.search('@')

提交回复
热议问题