关于模糊事件的jquery不工作 [英] jquery on blur event not working

查看:76
本文介绍了关于模糊事件的jquery不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于模糊事件的jquery不工作



jquery on blur event not working

$(document).on("blur","#txtPasswordReg",function(e){
        if(!(passwordCheck($("#txtPasswordReg").val()))){
            $(this).css('color', 'red');
            alert("Please Enter Valid Password");
        }
        else if($(this).val()==""){
            $(this).css('color', 'red');
        }
        else{
            $(this).css('color', 'black');
        }
    });

推荐答案

document )。on( blur #txtPasswordReg function (e){
if (!(passwordCheck(
(document).on("blur","#txtPasswordReg",function(e){ if(!(passwordCheck(


#txtPasswordReg)。val()))){
("#txtPasswordReg").val()))){


this )。css(' color'' red');
alert( 请输入有效密码);
}
else if
(this).css('color', 'red'); alert("Please Enter Valid Password"); } else if(


这篇关于关于模糊事件的jquery不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆