所以我有一个简单的选择列表
<select id="themes" class="selectpicker">
<option selected>mkl-ambiance</option>
<option>default</option>
<option>ambiance</option>
<option>blackboard</option>
</select>
和一小段jquery
$("#themes").change(function() {
var theme = $("#themes").val();
editor.setOption("theme", theme);
});
如果我class="selectpicker"从选择中删除,则回调按预期工作。我什至添加onchange="doMyFunction并更改$("#themes").change(function() {为 function doMyFunction() {,但仍然没有用。我是否缺少一些引导魔法来使其正常工作?