1
나는 다음과 같은 코드가 있습니다JQuery와 대화 버튼 CSS의
$("#confirm").dialog({
modal: true,
title: 'Confirm',
resizable: false,
draggable: false,
autoOpen: false,
height: 200,
width: 550,
buttons: [{
tabIndex: -1,
text: 'Yes',
"class": 'informationLearnButton',
click: function() {
...
}
else {
}
$(this).dialog("close");
}
},
{
tabIndex: -1,
text: 'No',
'className': 'SomeOtherCssClass',
click: function() {
$(this).dialog("close");
}
}]
});
클래스는 나를 위해 작동하지 않습니다 난 "과"을하지 않고 ""클래스와 클래스 이름을했습니다. JQuery 버전은 1.8.22입니다. class'` 잘 http://jsfiddle.net/arunpjohny 것 같다 ''사용
$("#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").addClass("custom");
}
});
: 지금 무엇을 여기 –
이 게시물보기 : - http://stackoverflow.com/questions/1828010/apply-css-to-jquery-dialog-buttons – Pranav