Hello all,

I am attempting to duplicate a large area on a form that contains
input and textareas. However, when cloning the radio buttons, the
selected items end up on the cloned entry, and do not stay on the
initial entry like the input, select, and textarea.

I thought this was due to ID's, but even after removing them as a
test, the issue still occurs. Here is example code:

----------------------------------------------------------------------------------------------------------------------
<script type="text/javascript">
        $(document).ready(function(){
                $("#submit").click(function(){
                  $('#test').clone(true).insertAfter('#test');
                });
        });
</script>
<div id="test">
<input type="radio" name="1" /> test
</div>
<input type="submit" id="submit" />
----------------------------------------------------------------------------------------------------------------------

I realize this is horrible HTML, I'm just using it to get feedback on
my issue. Either way, with the real code, the IDs and Names are
changed later down after the clone, and the values are reset to
nothing.

TIA

Reply via email to