Select elements with class except one with specific id

后端 未结 3 1816
不思量自难忘°
不思量自难忘° 2021-01-13 17:39
$(\'.ui-widget-content\').css(\'border\',\'none\');
    $(\'#helpDialog .ui-widget-content\').addClass(\'HelpDialogBorder\');

I am doing like this

3条回答
  •  长情又很酷
    2021-01-13 18:02

    Try this (also see my jsfiddle):

    $('.ui-widget-content').not('#helpDialog').css('border','none');
    

提交回复
热议问题