通过jquery密码消息框 [英] Password message box through jquery

查看:69
本文介绍了通过jquery密码消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个密码的消息框,当我在文本框中输入密码时,单击确定按钮时没有读取。



< pre lang =HTML> function PasswordScreen(){
$ .msgBox({title:输入密码,id:txtPassword,输入:prompt,content2:,success:function( e,m){
alert(OK按钮之前);
if(e =='OK'){
alert(Inside OK button);
var txtPassword = $ .trim($('#txtPassword')。val());
alert(txtPassword);

}
}
});
}



我必须从文本框中读取密码并进行验证。感谢您的帮助



我尝试过:



尝试不同在线方法

解决方案

.msgBox({title:输入您的密码,id:txtPassword,输入:prompt,content2:,成功: function(e,m){
alert(OK按钮之前);
if(e =='OK'){
alert(Inside OK button);
var txtPassword =


.trim(


('#txtPassword')。val());
alert(txtPassword);

}
}
});
}



我必须从文本框中读取密码并进行验证。感谢您的帮助



我尝试过:



尝试不同在线方法


I have a message box for password, when I'm entering the password in the text box its not reading on clicking the "OK" button.

function PasswordScreen() {
             $.msgBox({ title: "Enter your Password", id: "txtPassword", type: "prompt", content2: "", success: function (e, m) {
            alert("before OK button");
            if (e == 'OK') {
                alert("Inside OK button");
                var txtPassword = $.trim($('#txtPassword').val());
                alert(txtPassword);

            }
        }
                });
    }


I have to read the password from the text box and validate it. Thanks for the help

What I have tried:

Tried different online methods

解决方案

.msgBox({ title: "Enter your Password", id: "txtPassword", type: "prompt", content2: "", success: function (e, m) { alert("before OK button"); if (e == 'OK') { alert("Inside OK button"); var txtPassword =


.trim(


('#txtPassword').val()); alert(txtPassword); } } }); }


I have to read the password from the text box and validate it. Thanks for the help

What I have tried:

Tried different online methods


这篇关于通过jquery密码消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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