A: 

By default, SimpleModal clones the content being used in the dialog. You have a few different options you can try.

1) Use the persist option:

$('#foo').modal({persist:true});

2) Add the class in the onShow callback:

$('#foo').modal({
    onShow: function (dialog) {
        var classList = $('#divClassHolder', dialog.data[0]) ...
    }
});

Also, just wanted to mention that in the code you provided, using the onClose callback and calling $.modal.close(); is not necessary. When the dialog closes, it will automatically perform that step.

Hope that helps.

-Eric

Eric Martin