<div class="form-group">
<div class="row" style="margin-top: 10px;">
<div class="weekDays-selector checkbox-inline"
ng-repeat="day in vm.days"
ng-if="vm.pen.feeding_frequency.name == 'Custom'">
<input type="checkbox" ng-click="function()"
id="custom_frequency{{$index}}"
name="custom_frequency"
class="weekday" / >
<label for="custom_frequency{{$index}}">{{day.name}}</label>
</div>
This section of my HTML code is responsible for generating checkboxes based on a predefined object
The structure of the object is as follows:
vm.days = [{
name: i18nFilter('_custom_day_monday_'),
value: 1
}, {
name: i18nFilter('_custom_day_tuesday_'),
value: 2
}, {
name: i18nFilter('_custom_day_wednesday_'),
value: 3
}, {
name: i18nFilter('_custom_day_thursday_'),
value: 4
}, {
name: i18nFilter('_custom_day_friday_'),
value: 5
}, {
name: i18nFilter('_custom_day_saturday_'),
value: 7
}, {
name: i18nFilter('_custom_day_sunday_'),
value: 7
}]
Now, I am looking for a way to determine if any of these dynamically generated checkboxes are checked. Any suggestions on how I can achieve that?