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:
<
As seen in the answer for this question, jQuery dialog has a field appendTo, that can be used to configure where to put your dialog (div-wise) on initialization.
appendTo
This seems to be the least ninja-workaround version to tackle the problem.