Hi there,
I want to add css class on buttons of a jquery dialog box.
Here is my code :
$(document).ready(function(){
$('#messageBox p').html('bla bla bla. Ok?');
$('#messageBox').dialog({
modal : true,
buttons: {
'Yes': function() {
doSomething();
$(this).dialog('close');
},
'No': function() {
doAnotherThing();
$(this).dialog('close');
}
}
});
});
For example, I would like add ".red" class on my "yes" button.
How can I do that?
Thank you!