multiple dialog in a form

multiple dialog in a form

Hi,

I wish to ask if multiple dialogs allowed in a form?
dialog#1 fill in <hobbies & interests>
dialog#2 fill in <personal information>
Both dialog attached to the form (parent)

I fill all the field in dialog#1 and dialog#2 and press SUBMIT button in the form.
I found that the parameters in dialog#1 is not submitted.
Is it because i use appendTo() incorrectly?


Is following code correct? I append my dialog to form.
I wonder is it because the dialog#2 'overwrite' the dialog#1?
  1. $('#dialog1').parent().appendTo('#form'); 
  2. $('#dialog2').parent().appendTo('#form');
May I know how to avoid the previous elements to be overwritten with new elements?