angularjs - How to make dropbox items unselectable? -


i have html element:

  <select class="form-control" ng-model="current.data.sites" ng-options="item.id item.description item in current.lookups.sitereg | filterbyidarray: current.data.sites">   <option value="">--data--</option> 

when open dropbox want items displayed want make unselectable.

any idea how can make items in dropbox unselectable?

you need set disabled on option tag. if want make options disabled have use ng-repeat rather ng-options.

  <select class="form-control" >      <option value="">--data--</option>      <option ng-repeat="item in current.lookups.sitereg | filterbyidarray: current.data.sites" value="{{item}}">{{item}}</option>  </select> 

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -