如何在Jquery中更改Ok按钮颜色 [英] How Can I Change Ok Button Color Inside Jquery
本文介绍了如何在Jquery中更改Ok按钮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个链接按钮。当我单击该按钮时,将出现一个带有ok按钮的新模态对话框。按钮创建代码是
function ShowMessageBox(){
$( #messageBox)。dialog({
modal: true ,
按钮:{
确定:功能(){
$( this )。对话框( close);
}
}
});
return false ;
}
现在我想将ok按钮的颜色更改为红色。你能帮我吗??
提前谢谢。
解决方案
( #messageBox)。dialog({
modal: true ,
按钮:{
Ok: function (){
( this )。对话框( close);
}
}
});
return false ;
}
现在我想将ok按钮的颜色更改为红色。能帮到我吗??
提前致谢。
试试如下
I have a link button. when I click that button a new modal dialog will appear having a ok button. the button creation code is
function ShowMessageBox() {
$("#messageBox").dialog({
modal: true,
buttons: {
Ok: function () {
$(this).dialog("close");
}
}
});
return false;
}
And now I want to change the color of that ok button to red. can you please help me.?
Thanks in advance.
解决方案
("#messageBox").dialog({ modal: true, buttons: { Ok: function () {
(this).dialog("close"); } } }); return false; }
And now I want to change the color of that ok button to red. can you please help me.?
Thanks in advance.
Try like below
这篇关于如何在Jquery中更改Ok按钮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文