title: Change an ID value of a form element with javascript
body: <p>I have a requirement to change the id of a form element dynamically. For example, the elements are in a sequence in form like id1, id2, id3 and id4 (the number of elements is not fixed to 4 and can be more than that). I need to add an element after id1 as id2. when this happens, the id2 which already in the form should change as id3 and id3 should change as id4 and so on. I thought of putting it in a recursive function with javascript but didn't get any idea as of now....Please help.</p>