Url is here:
http://jqueryui.com/demos/dialog/#modal
Suppose this dialog contains two buttons:"OK" and "NO",
when "Enter" is pressed,I want the function binded with "OK" button to be called.
How to do that?
The dialog is 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>