jeudi 12 mai 2016

Call a function with true value if checkbox is checked and function with false value when checkbox is unchecked

I have a simple checkbox input

<input type="checkbox" name="xxx" data-ng-clik='someFunction(true/false)' "/>

If user tick checkbox I want to call my someFunction(true) with true value and if user uncheck I want to call the same function someFunction(false) with false value.

Any suggetions how can I do that?




Aucun commentaire:

Enregistrer un commentaire