I'm trying to change jQuery dialog's font-family from a little display settings panel. I've tried all of these to no avail:
$('#orderHolder').style.fontFamily='Bookman Old Style';
$('.ui-dialog-content').style.fontFamily='Bookman Old Style';
$('.ui-widget-content').style.fontFamily='Bookman Old Style';
$('#orderHolder').css("font-family", "Bookman Old Style';
$('*').css('font-family', 'Bookman Old Style'); //this is what I'm after
(#orderHolder being the div that contains the dialog content)
I found
*{
font-family: 'Bookman Old Style';
}
in the .css file works fine, and the overall effect is what I am after.
So, How do you select all elements for styling in javascript?