0
我試圖給底部面板上的按鈕添加一個名稱(不是顯示的文本),並且找不到一種方法。將名稱添加到JQuery對話框底部按鈕
這是我迄今爲止...
$("#dialog-import-from-existing").dialog({
title: "Import From Existing",
autoOpen: false,
modal: true,
draggable: false,
resizable: false,
width: 500,
height: 525,
buttons: {
**name : "SubmitButton",**
"Import": function() {
$('#CreateForm').submit();
$(this).dialog('close');
},
"Cancel": function() {
//Need to added the js files to Driver studio.
//$("models-to-add-container").effect("explode");
$(this).dialog('close');
}
}
});
我想有這個按鈕的名稱爲「提交按鈕」。
在此先感謝。