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
$("#logonDialog").keydown(function (event) {if (event.keyCode == 13) { $(this).parent().find("button:eq(0)").trigger("click"); return false; } });