0
我想一個類定義添加到與button : { }
我怎麼這樣做沒有做這樣的事情$('.ui-dialog-buttonpane button:eq(0)')
jQuery的對話框添加自定義類按鈕
$(function() {
$("#dialog-confirm").dialog({
resizable: false,
height:140,
modal: true,
buttons: {
//add a class definition to the delete all items button here. tried
//class:'save' didn't work
"Delete all items": function() {
$(this).dialog("close");
},
Cancel: function() {
$(this).dialog("close");
}
}
});
});