如何将取消按钮的文本从 CANCEL 更改为 CLOSE?谢谢!
$("#dialog").dialog({
buttons : [
{
text : 'SAVE',
click : function() {}
},
{
text : 'CANCEL',
click : function() {}
}
]
});
$("#button").click(function(){alert('Please change cancel button text from "CANCEL" to "CLOSE"');});
<div id="dialog"><button id="button">Change cancel button text from "CANCEL" to "CLOSE"</button></div>