Submit jQuery UI dialog on <Enter>

Posted by CMB on Stack Overflow See other posts from Stack Overflow or by CMB
Published on 2009-05-15T14:09:09Z Indexed on 2010/12/23 13:54 UTC
Read the original article Hit count: 226

Filed under:
|
|

I have a jQuery UI dialog box with a form. I would like to simulate a click on one of the dialog's buttons so you don't have to use the mouse or tab over to it. In other words, I want it to act like a regular GUI dialog box where simulates hitting the "OK" button.

I assume this might be a simple option with the dialog, but I can't find it in the jQuery UI documentation. I could bind each form input with keyup() but didn't know if there was a simpler/cleaner way. Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery