I have something like this:
<div id='cb1'>
<input name='c1' value='12'>
<input name='c1' value='32'>
...
<input name='c1' value='32'>
</div>
<div id='z1'>
</div>
and I need to
copy all the inputs from #cb1 to #z1 and rename them to x1, so I would get this:
<div id='z1'>
<input name='x1' value='12'>
<input name='x1' value='32'>
...
<input name='x1' value='32'>
</div>