I want to determine if the checkbox has been checked or unchecked when a click is made on the flag.
This is what I have:
<input type="checkbox" ng-model="answers[item.questID]" ng-change="stateChanged()" />
And then in the controller, I:
$scope.stateChanged = function () { alert('test'); }
I can trigger a warning when I check / uncheck the box, but how can I determine the status of the box? I did a little research to find a similar problem, but I could not get what I needed.
Thanks Laziale
javascript jquery angularjs checkbox angularjs-scope
Laziale Dec 10 '14 at 22:12 2014-12-10 22:12
source share