I found a very easy way to submit dialog on enter in your UI DIalog,
hope someone will use it :)
function:
function form_click_enter(form)
{
var dialog = $(form).parent("div").siblings("div.ui-dialog-
buttonpane");
$("button:first",dialog).click(); // right one
}
and typical html you need to put in your dialog:
<form id="add_place_form" onsubmit="javascript:form_click_enter
(this);" action="javascript:;">
here inputs etc...
</form>
It works really fine for me.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---