The jQuery UI CSS Framework container classes are meant to work
regardless of their parent containers, so that's why you aren't seeing
your error style cascade into your header.

To achieve your effect, you could just traverse to the header div
after creating your dialog. Since the dialog() plugin returns your
original element, which is now the dialog content, you can get to the
title bar with a .prev() method and add your class there. Try this:

$("#dialog").dialog({
                        bgiframe: true,
                        dialogClass: 'ui-state-error',
                        height: 140,
                        modal: true
}).prev().addClass('ui-state-error');

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to