Javascript 无法在jquery multiple select中绑定ng选项值
无法在下拉列表中绑定ng选项值。我在控制台中获得类别数组Javascript 无法在jquery multiple select中绑定ng选项值,javascript,angularjs,multiple-select,Javascript,Angularjs,Multiple Select,无法在下拉列表中绑定ng选项值。我在控制台中获得类别数组 <link href="~/Scripts/jquery.multiselect.css" rel="stylesheet"/> <select name="SectionType" id="select" ng-options="cat.Name for cat in Category" class="
<link href="~/Scripts/jquery.multiselect.css" rel="stylesheet"/>
<select name="SectionType" id="select" ng-options="cat.Name for cat in Category" class="form-
control" ng-model="SType" multiple>
<option ng-selected="false" value="">Select</option>
</select>
<script src="~/Scripts/jquery.multiselect.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('select[multiple]').multiselect();
});
</script>
挑选
$(文档).ready(函数(){
$('select[multiple]')。multiselect();
});
您不应该混合使用jquery和angularjs。您不需要两个框架来修改DOM。您应该只使用angular和bulid,使用可选项的ng模型进行多重选择。