I have got 4 checkboxes ad they should act like checkboxes, but they don't. I just can select one. Can somebody please help me with my problem?
My second question is, is it possible that they are all selected from the beginning?
Thanks!
<div class="form-group">
<input type="checkbox" id="stat1" ng-true-value="'black'" ng-model="statusblack"/>
<label for="stat1">black</label><br />
<input type="checkbox" id="stat2" ng-true-value="'red'" ng-model="statusred"/>
<label for="stat2">red</label><br />
<input type="checkbox" id="stat3" ng-true-value="'yellow'" ng-model="statusyellow"/>
<label for="stat3">yellowt</label><br />
<input type="checkbox" id="stat4" ng-true-value="'green'" ng-model="statusgreen"/>
<label for="stat4">green</label><br />
</div>
<table class="table table-striped">
<thead>
<tr>
<th>Number</th>
<th>Color</th>
<th>Info</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="co in $ctrl.colors | filter:statusred | filter:statusblack | filter:statusgreen | filter:statusyellow">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
Aucun commentaire:
Enregistrer un commentaire