通过jquery密码消息框 [英] Password message box through 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屋!