My apologies if this is a stupid question...I recently inherited a
jQuery dialog component and am trying to ramp up.
Here is the problem: We have 2 buttons on the dialog box -- but we
need for one of them to have a different class applied. It is
automatically styling the buttons the same...How do you apply a unique
class to a button?
Here is the function I'm using to call the dialog box:
function seDispConfirm() {
$(function() {
$("#dialog").dialog({
bgiframe: true,
resizable: false,
height:140,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
},
buttons: {
'Continue Working': function() {
seExtendSession();
$(this).dialog('close');
},
'Logout Now': function() {
seExpiresSession();
$(this).dialog('close');
}
},
close: function() {
$(this).dialog('destroy');
}
});
});
window.setTimeout("window.focus();", 0);
}
Is there something here that I can do to add a class to the "Logout
Now" button? Or do I have to make adjustments in the jQuery core
JavaScript?
Thanks for any help on this.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---