I have HTML checkboxes that have their id's generated from an angular ng-repeat and when ever I try and collect the id to use it, it's always coming back as undefined.
$("input:checkbox.time-check-input").each(function () {
    var ruleUnformatted = "";
    var checked = $(this);
    if (checked.is(":checked")) {
        ruleUnformatted = checked.id;
        var name = "Rule" + count;
        settingsObj[name] = ruleUnformatted;
        count++;
    }  
}); 
And the HTML:
<div class="time-check">
    <input type="checkbox" value="None" ng-click="settings.checked($event)" class="time-check-input" id="{{level.LevelTmsCode}}-{{day.Day}}-open" name="check"/>
    <label for="{{level.LevelTmsCode}}-{{day.Day}}-open" class="time-check-input"></label> <span>Open</span>
</div>
I know sometimes the angular can be loaded after the vanilla code, but I don't think that's the issue in this case as this code is initiated by a button press. Also when debugging in Chrome I can see the id, but for some reason, selecting it is not working.
 
    