$(\'.ui-widget-content\').css(\'border\',\'none\'); $(\'#helpDialog .ui-widget-content\').addClass(\'HelpDialogBorder\');
I am doing like this
Try this (also see my jsfiddle):
$('.ui-widget-content').not('#helpDialog').css('border','none');
Sure, use :not():
$('.ui-widget-content:not(#helpDialog)').css('border', 0);
You can try this $('.ui-widget-content').not('#id')
$('.ui-widget-content').not('#id')