Are you duplicating the whole form?  If so you can just call reset on the
new form you created.  If not I think you can run through and just set the
'selected' attribute on each button to a false.

On Thu, Jan 14, 2010 at 2:08 PM, Essie <esstah...@gmail.com> wrote:

> 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
>



-- 
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com

Reply via email to