input:true設定是否要顯示輸入框
r:為輸入的值
apprise("Change " + ctlName + " password?", {"verify" : true,"input":true}, function(r) { if (r) { console.log("user clicked Yes"); if(typeof(r) == "string"){ console.log("new password:" + r); $.changePassword({ uid:ctlName, oldPassword:"admin", newPassword:r, callback:changePasswordEventHandler }); } } else { console.log("user clicked No"); } });Reference:
Apprise
The attractive alert alternative for jQuery
沒有留言:
張貼留言
留個話吧:)