//密码可见切换
$("i.pwd-icon").on("click", function() {
if($(this).hasClass("icon-eye_protection")) {
// 令其可见
$("#txtPwd").attr("type", "text");
$(this).removeClass("icon-eye_protection")
.addClass("icon-shut_down");
$(this).attr("title", "不显示密码内容");
}else if($(this).hasClass("icon-shut_down")) {
//不可见
$("#txtPwd").attr("type", "text");
$(this).removeClass("icon-shut_down")
.addClass("icon-eye_protection");
$(this).attr("title", "显示密码内容");
}
});
// 回车事件
$("#txtUser").keydown(function (event) {
if (event.keyCode == 13) {
$("#txtPwd").focus();
}
});
$(