Url here:
http://jqueryui.com/demos/dialog/#modal
Suppose this dialog box contains two buttons: OK and NO,
when the "Enter" button is pressed, I want the function to be bound to the "OK" button.
How to do it?
The dialog looks something like this:
<table cellpadding="0" border="0" width="100%">
<tr align="center">
<td align="right">name/email:</td>
<td><input type="text" id="name" /></td>
</tr>
<tr align="center">
<td align="right" valign="top">password:</td>
<td>
<input type="text" id="psw" />
</td>
</tr>
<tr align="center">
<td></td>
<td><span id="loginErr"></span></td>
</tr>
</table>
source
share