dhtml combobox - cut n paste the comboboxes to another div?

Hello forum

I have few comboboxes in a div i.e. DIV1, which i have to remove & then put it into another DIV2. I have used innerHTML to get all the contents from DIV1. Then upon copying the contents to the another DIV2 it shows only the combobox and it looses all its events & data.

Please help me to fix this issue. Any sample or ideas will be appreciated.

Many thanks
regards

Hello folks,

I got it working.
I used appendTo, and it works perfect.

Example:

<div id='div1'>
     <div id='childdiv1'>contents.......</div>
</div>
<div id='div2'></div>

Solution:

$('#childdiv1').appendTo('#div2);

Thanks !