OnChange Event of Checkboxes in Angular

Python Angular JQuery

Python : {{Python}}, Angular : {{Angular}}, JQuery : {{JQuery}}
<div ng-app="my_app" ng-controller="my_ctrl">
<input type=checkbox ng-model="Python" ng-change="onChange()"> Python 
<input type=checkbox ng-model="Angular" ng-change="onChange()"> Angular
<input type=checkbox ng-model="JQuery" ng-change="onChange()"> JQuery
Python : {{Python}}, Angular : {{Angular}}, JQuery : {{JQuery}}
<div class='alert alert-primary' role='alert' id=d1>After the on
Change event details will appear here</div>
var app = angular.module('my_app', []);
app.controller('my_ctrl', function($scope) {
$scope.Python=false; // default status
$scope.Angular=true; // default status
$scope.JQuery=false; // default status	
$scope.onChange = function()
var str="<b>Python</b>:"+$scope.Python+",<b> Angular</b>:"
 + $scope.Angular + ",<b> JQuery</b>:" + $scope.JQuery 	

Angular Home

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer