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
You should to use :tabbable selector and index of your button (0 is [X] button, yours started from 1)
open: function() { var tb = $(":tabbable", this.parentNode); if(tb.length>1) { tb[1].focus(); } }