assets/js/custom (another copy).js
// UT : To check email validity
UT : To check email validity
UT : To check email validity
function isValidEmail()
{
    var email = $(".valid_email").val();
    var length = email.length;
    var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if(!regex.test(email) || length >= 100) {
        $("#valid_email_des").css('border-color','red');
        $("#invalid_email").html('Invalid email');
        return false;
    }else{
        $("#valid_email_des").css('border-color','#ccc');
        $("#invalid_email").html('');
        return true;
    }
}
function isValidEmail ( ) { var email = $ ( ".valid_email" ) . val ( ) ; var length = email . length ; var regex = / ^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$ / ; if ( ! regex . test ( email ) || length >= 100 ) { $ ( "#valid_email_des" ) . css ( 'border-color' , 'red' ) ; $ ( "#invalid_email" ) . html ( 'Invalid email' ) ; return false ; } else { $ ( "#valid_email_des" ) . css ( 'border-color' , '#ccc' ) ; $ ( "#invalid_email" ) . html ( '' ) ; return true ; } }
UT : To check email validity
UT : To check email validity