Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Preselecting options select2 angularjs

 <select ui-select2 ng-model="testModel" multiple style="width:200px">
   <option value="{{item.id}}" ng-repeat="item in items">{{item.text}}</option>
</select>

$scope.testModel = [3];
 
PREVIOUS NEXT
Tagged: #Preselecting #options #angularjs
ADD COMMENT
Topic
Name
4+1 =