I was just writing some code and I met a problem like this: alertify.dialog("confirm").set( { 'labels': { ok: 'Personal', cancel: 'Share' }, 'message': 'Select target:', 'onok': function() { alertify.confirm($("#dir_select_user").get(0), function() { var i = $("#dir_select_user .dir_selector").val(); t.find(".move_des").val(i); t.find(".move_verify").val("1"); t.submit(); }).set('labels', { ok: alertify.defaults.glossary.ok, cancel: alertify.defaults.glossary.cancel }); }, 'oncancel': function() { alertify.confirm($("#dir_select_share").get(0), function() { var i = $("#dir_select_share .dir