$(\'.ui-widget-content\').css(\'border\',\'none\'); $(\'#helpDialog .ui-widget-content\').addClass(\'HelpDialogBorder\');
I am doing like this
Sure, use :not():
$('.ui-widget-content:not(#helpDialog)').css('border', 0);