私はどのように特定のボタンにクラスを追加するには、次の構文を使用してjQuery Uiダイアログボタン、クラスを追加するには?
How to add multiple buttons in Jquery UI dialog box?
..別のスレッドでこの答えを見つけましたか?あなたは番目のボタンを望んでいた場合
$("#dialog").dialog({
buttons: {
'Confirm': function() {
//do something
$(this).dialog('close');
},
'Cancel': function() {
$(this).dialog('close');
}
},
create:function() {
$(this).closest(".ui-dialog")
.find(".ui-button:first") // the first button
.addClass("custom");
}
});
:API経由でこれを行うための素晴らしい方法がありますようにそれが見えない
$("#mydialog").dialog({
buttons: {
'Confirm': function() {
//do something
$(this).dialog('close');
},
'Cancel': function() {
$(this).dialog('close');
}
}
});
...ラフワイアウイスキーとキューバのシガー。 – rockerest
@rockerest:あなたはちょうど私の一日を作った。 Laphroiag 10年シングルマルトはスコッチに行くのです。 –