$('#reNewPassword').bind('input propertychange', function() {
if ($('#reNewPassword').val() != $('#newPassword').val()) {
show()
console.log("两次密码输入不一样")
}else {
clock()
}
})
function show() {
$('#save').attr("disabled", true);
}
function clock() {
$('#save').attr("disabled", false);
$('#save').css("background","#0778c5");
$('#spanRepassword').hide();
}
jqurey确认密码时实时监听输入框的改变
猜你喜欢
转载自blog.csdn.net/dingcai12003/article/details/93381112
今日推荐
周排行