我正在使用bootstrap-multiselect進行多選下拉菜單。我的繼承人碼 -Boostrap多選下拉菜單空
<td style="padding-left: 20px;">
<select ng-model="$parent.selectedRunningInstances" id="multiSelectDropDown" multiple="multiple">
<option ng-repeat="instance in instances" value="{{instance.name}}" >{{instance.name}}</option>
</select>
</td>
但是,即使我有實例陣列,以在它的對象,它顯示空的下拉列表
生成的HTML -
<td>
<select ng-model="$parent.selectedRunningInstances" id="multiSelectDropDown" multiple="multiple" class="ng-pristine ng-valid" disabled="" style="display: none;">
<!-- ngRepeat: instance in instances -->
<option ng-repeat="instance in instances" value="CacheServer" class="ng-scope ng-binding">CacheServer</option> <!-- end ngRepeat: instance in instances -->
<option ng-repeat="instance in instances" value="Instance1" class="ng-scope ng-binding">Instance1</option><!-- end ngRepeat: instance in instances -->
</select>
<div class="btn-group"><button type="button" class="multiselect dropdown-toggle btn btn-default disabled" data-toggle="dropdown" title="None selected" disabled=""><span class="multiselect-selected-text">No Instances</span> <b class="caret"></b></button><ul class="multiselect-container dropdown-menu"></ul> </div>
</td>
但是,爲什麼它不正常工作。 – Disha
這不適用於我 – Disha