答案 0 :(得分:6)
multiple
是布尔属性,你可以像这样使用attr选择器$('select[multiple]')
$('select[multiple]').css('background', 'blue');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select multiple class="form-control" id="exampleSelect2">
<option>1</option>
<option>2</option>
</select>