阅读背景:

Jquery UI - 对话框关闭,按下了哪个按钮

来源:互联网 

I am using a jquery ui dialog as a prompt. The "prompt" has to buttons, "Ok" and "Cancel". The problem here is, it extracts the input fields value in the dialog when .dialog("close") is triggered and my only validation is that the length of the input field has to be more than 0 chars. This means that even when you type something and press cancel the text from the prompt will be submittet. My thought was to find out what button was pressed... Anyone know a solution to this?I am using a jquery ui dialog as a prompt. The




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: