jQuery, when i use it to create a modal window which contains form elemets, it takes out those elements when i submit the form.
example of the form:
<
From http://blog.coreycoogan.com/2010/12/01/jquerys-dialog-and-form-problems/
Tie it to the form by doing $("mydialog").parent().appendTo($("form:first")).
$("mydialog").parent().appendTo($("form:first"))
Note that you have to this call after you already called $("mydialog").dialog()
$("mydialog").dialog()