Prefixing all input names

Prefixing all input names

I want to prefix all the input names with a particular DIV eg.

<div id="my_div">
<input name="phone" type="text" />
</div>

becomes

<div id="my_div">
<input name="1_phone" type="text" />
</div>


How would I go about this please, I don't really know where to start.


Thanks, Cham.