I have a html template like this
<div class="row form-field" ng-show="specialRequestShown" id="specialRequests">
<div>
<label><input type="checkbox" class="needsclick"> Non-smoking Room</label>
</div>
<div>
<label><input type="checkbox" class="needsclick"> Late Check-in</label>
</div>
<div>
<label><input type="checkbox" class="needsclick"> Early Check-in</label>
</div>
<div>
<label><input type="checkbox" class="needsclick"> Twin Bed</label>
</div>
<div>
<label><input type="checkbox" class="needsclick"> Large Bed</label>
</div>
<div>
<label><input type="checkbox" class="needsclick"> Extra Bed</label>
</div>
<div>
<label><input type="checkbox" class="needsclick"> Airport Transfer</label>
</div>
</div>
<button type="submit" class="btn btn-default gi-btn-next" ng-click="goToPayment()">
Lanjutkan
</button>
</div>
Question:
In the function goToPayment(), how can I which checkboxes checked in div specialRequests without having to assign ng-model to each one of them? Function goToPayment() is located in the controller. Is there anyway to loop through the div specialRequests children?