Currently I am working on servicenow, here we are using anularjs. I am unable to get checkbox checkvalue
Here is my code,
$scope.userFavourite = function(favourite){
alert(favourite);
}
<labe for="tea"><input type="checkbox" ng-model="Food" value="food" ng-true-value="food" ng-click="userFavourite(value)"/>Food</labe>
<labe for="tea"><input type="checkbox" ng-model="Books" value="tea" ng-true-value="tea" ng-click="userFavourite()"/>Books</labe>
<labe for="tea"><input type="checkbox" ng-model="Travel" value="travel" ng-true-value="travel" ng-click="userFavourite(Travel)"/>Travel</labe>
Thanks your value time spending on this