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
This other stackoverflow question should get you where you want:
$('#DialogTag').keyup(function(e) { if (e.keyCode == 13) { //Close dialog and/or submit here... } });