如何使用jQuery一次性禁用多个列表框?

Ste*_*ven 3 jquery listbox

我可以通过这样做禁用一个和一个:

jQuery('#ListBoxA').attr('disabled','true');
Run Code Online (Sandbox Code Playgroud)

但是如何将其应用于多个项目?这不起作用:

jQuery('#ListBoxA, #ListBoxB, #ListBoxC').attr('disabled','true');
Run Code Online (Sandbox Code Playgroud)

UPDATE

显示的标记不多....

<select id="ListBoxA" size="4" name="countrySelectBox">
<select id="ListBoxB" size="4" name="cityListBox">
<select id="ListBoxC" size="4" name="storeListBox" multiple="multiple">
Run Code Online (Sandbox Code Playgroud)

Ces*_*sar 6

jQuery('#ListBoxA,#ListBoxB,#ListBoxC').attr('disabled','disabled'); (没有空格).

启用使用 jQuery('#ListBoxA,#ListBoxB,#ListBoxC').removeAttr('disabled');

http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN