我的工作与jQuery和我有对话有两个按钮[ OK, Cancel ]
jQuery的隐藏OK按钮
我的代码是
$("#test").dialog({
modal: true,
minHeight: 600,
minWidth: 550,
buttons: {
OK: function() {
$(this).dialog("close");
},
Cancel: function() {
$(this).dialog("close");
}
}
});
有时候,我需要隐藏OK
按钮(仅查看权限)
灿有人帮助我?