Sabya Sabya - 1 year ago 120
jQuery Question

jquery dialog save cancel button styling

I am using jquery ui dialogs in my application.
How do I style the "Save" and "Cancel" buttons differently in a jquery dialog?
So "Save" is more appealing than the "Cancel".
I could use a hyper link for "Cancel", but how do I place that in the same button panel?

Answer Source

Here is how to add custom classes in jQuery UI Dialog (Version 1.8+):

    'buttons' : {
        'cancel' : {
            priority: 'secondary', class: 'foo bar baz', click: function() {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download