0

if i add background:#e7eef9; to jQuery("#div_element").dialog, this will be appended to whole dialog. How can i append this to buttons area only?

function test(buttonEl)
{
    jQuery("#div_element").dialog({
         resizable: false,
         height:200,
         modal: true,
         width: 300,
         buttons: {
            Cancel: function() {
                 jQuery( this ).dialog( "close" );
            }
         }
    });
}
Sumanth
  • 595
  • 3
  • 14
  • 39
  • possible duplicate of [Apply CSS to jQuery Dialog Buttons](http://stackoverflow.com/questions/1828010/apply-css-to-jquery-dialog-buttons) – Rob Hruska Sep 11 '13 at 01:18

1 Answers1

3

Use the general sibling combinator ~.

CSS:

#div_element ~ .ui-dialog-buttonpane button {
    background: e7eef9;
}
iambriansreed
  • 21,935
  • 6
  • 63
  • 79