0
我想給一個名稱和值的UI對話框中的默認按鈕。我怎樣才能做到這一點 ?我想給提交按鈕一個值和名字!給jQuery UI對話框按鈕的名稱和值...
$("#dialog").dialog({
bgiframe: true,
autoOpen: false,
height: 150,
width: 600,
modal: true,
buttons: {
Submit: function() {
document.getElementById('form').submit();
$(this).dialog('close');
},
Cancel: function() {
$(this).dialog('close');
}
}
});
$('#beleg_sichern').click(function() {
$('#dialog').dialog('open');
});
didnt工作:( – 2010-10-20 01:15:41
@Pezhman Fallahi - 在何種意義上做到了不工作有什麼期望的結果,你能不能給更多信息 – redsquare 2010-10-20 06:09:21
@Pezhman Fallahi答案修改 - !嘗試上面 – redsquare 2010-10-20 06:43:16