mardi 19 avril 2016

angularjs disable checkbox if specific checkbox checked in ng-repeat

Here i like to explain my problem.

i have a list of checkbox displayed by using ng-repeat, if i checked a specific checkbox it has to disable other checkbox.

<label ng-repeat="specific in specifications">
       <input id="specifications_chk" value="" ng-model="newObject[specific]" type="checkbox">
       
</label>

checkbox value is getting from json file.

image

Here if i check IndepthHomeCleaning, i need to disable others. thats it




Aucun commentaire:

Enregistrer un commentaire