jQueryUI Dialog Form question

jQueryUI Dialog Form question


I'm using the Dialog in my application and I've come across an issue
where I need some help. What I want to do is submit a form from the
Dialog.
I've looked at the modal form Dialog demo (http://jqueryui.com/demos/
dialog/#modal-form) for an example, but this example doesn't actually
post anything. If successful, it just manipulates the DOM.
I want to be able to "submit" the form when I click a button from the
Dialog.
Can somebody point me in the right direction?
Thanks