Modal Dialog w/ a checkbox to open another modal dialog

Modal Dialog w/ a checkbox to open another modal dialog

I am having an issue where the checkbox does not stay checked when opening another modal dialog from the checkboxes click event. 
  1.  $('.chkProgressChk').click(function () {                  if ($(this).attr('checked')) { 
                        $
    (this).attr('checked', true) 
                        $
    ('#ConfirmProgressCheck').dialog('open'); 
                        $
    (this).attr('checked', true) 
                   
    } 
     
               

    });