views:

28

answers:

0

I have a jquery ui modal loaded with checkboxes. some checkboxes have an event click associated with them depending what their class value is. the click event will open another modal dialog for confirmation. the checkbox fires the click event as expected, but the checkbox does not stay checked on the original modal dialog.

I have verified that it is due to opening the new modal dialog. I have tried the below to recheck the checkbox, but that doesn't work either. Any help would be appreciated.

 $('.chkProgressChk').click(function () {
                if ($(this).attr('checked')) {
                    $(this).attr('checked', true)
                    $('#ConfirmProgressCheck').dialog('open');
                    $(this).attr('checked', true)
                }

            });