angularjs - How hide options in select list angular? -
there object:
0 : { id : 1, value : 2}, 1 : { id : 2, value : 3}
and select list:
<select id="sec"> <option value="1"></option> <option value="1"></option> <option value="3"></option> </select>
how hide option in id="sec"
after click option id = 2
first select. so, show only:
<option value="1"></option> <option value="1"></option>
i tried add ng-model="selectlist" ng-change(selectlist)
selected value. how compare seleted value object , hide options second select?
my own solution is:
<?= form_dropdown('specialization', $speccategory['name'], array(), 'ng-model="specialization"');?> <select ng-model="doctors" name="doctor"> <option ng-show="specialization == {{value.usersspecializationidspecialization}}" value="{{value.usersworkspaceiduser}}" ng-repeat="(key, value) in options">{{value.detailtousersname}}</option> </select>
i hope set me plus point :)
Comments
Post a Comment