I have created group of checkbox using ng-repeat using the below days object value.
$scope.config = { days: [
{name:'Monday'},
{name:'Tuesday'},
{name:'Wednesday'},
{name:'Thursday'},
{name:'Friday'},
{name:'Saturday'},
{name:'Sunday'},
]}
});
My checkbox using ng-repeat is like that.
<ul class="list-inline">
<li ng-repeat="day in config.days">
<div class="checkbox">
<label class="xsm-label">
<input type="checkbox" ng-model="day.selected" value="" id="cs_select_" name="selected_days" />
</label>
</div>
</li>
</ul>
I tried much but no luck, kindly help me how to store value of checked checkbox value in a variable.
Thank you.
Aucun commentaire:
Enregistrer un commentaire