I have code to open a jQueryUI dialog with two buttons (OK, and Cancel). When the dialog opens, I want the OK button to have focus by default. After that, when I press the ENTER key, it should perform the actions associated with the OK button. How do I make this happen?
I have code to open a jQueryUI dialog with two buttons ( OK ,
Share
Use this code: