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
try this way:
$("#myDialog").dialog({ open: function() { $(this).siblings('.ui-dialog-buttonpane').find('button:eq(1)').focus(); } });