views:

57

answers:

1

To all:

I am trying to update a form input radio button(s) using simplemodal to display the div containing the radio buttons.

It displays correctly however when the modal is closed the change is lost.

is their a simple call back that can update my form?

Thanks in advance for your help.

Bob

A: 

Bob,

What exactly are you trying to do? By default, SimpleModal does not maintain form state. You can try adding the persist:true option to the modal, but there are still some issues with certain browsers.

-Eric

Eric Martin
Eric,Thanks for your response and your plugin.after reading more of your doc's I saw the persist option - but as you know that does not work in IE 6 $('#divModalId').modal({onShow: function (dialog) { $('input:radio', dialog.data).click(function () { var anyName = jQuery('#divModalId input:radio:checked').val(); $('#hiddenInputId').val(anyName); }); }}); $("#divModalId").modal({persist:true}); });});I will let you know how it turns out.Bob
Bob Knothe