Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

Currently I am using select for dropdown. I would like to change this as multiselect dropdown. But when I declare the multiselect dropdown I am getting error saying "unknown attribute Options"

The current code which is just a dropdown without multiselect.

                      <select class="form-control">      <option ng-repeat="item in CETIGroupList" value="{{item}}">{{item}}</option>
                        </select>

What I wrote for multiselect is

<div ng-dropdown-multiselect="" options="CETIGroupList" ></div>

Please help me creating a multiselect dropdown. Thanks

share|improve this question

include loadsh.js , bootstrap css , AngularJS Dropdown Multiselect in your app. Inject angularjs-dropdown-multiselect in your app

angular.module('sampleApp', ['angularjs-dropdown-multiselect'])

in your HTML page

<div ng-dropdown-multiselect="" options="example13data" selected-model="example13model" ></div>

in your Controller

$scope.example13model = [];
    $scope.example13data = [{
      id: 1,
      label: "David"
    }, {
      id: 2,
      label: "Jhon"
    }, {
      id: 3,
      label: "Lisa"
    }, {
      id: 4,
      label: "Nicole"
    }, {
      id: 5,
      label: "Danny"
    }];

Check out this fiddle : https://jsfiddle.net/ebinmanuval/8Ltae8pb/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.