In a jquery modal dialog, is there a way to select a button as the default action (action to execute when the user presses enter)?
Example of jquery web site: jquer
I'm using version 1.10.0. I could not get it to work with open but with focus. This focuses the second button:
focus: function(){ $(this).siblings('.ui-dialog-buttonpane').find('button:eq(1)').focus(); }