Chekbox Default data from external Sources

By default we can keep the status of Checkbox as checked or unchecked based on the data taken from external sources. The external source can be MySQL database or any CSV file or any other sources. The final output is available in JSON format here. You can read more on JSON data format here.

Python Angular JQuery

Python : {{Python}}, Angular : {{Angular}}, JQuery : {{JQuery}}
<div ng-app="my_app" ng-controller="my_ctrl">
<input type=checkbox ng-model="Python" > Python 
<input type=checkbox ng-model="Angular"> Angular
<input type=checkbox ng-model="JQuery" > JQuery
Python : {{Python}}, Angular : {{Angular}}, JQuery : {{JQuery}}

var app = angular.module('my_app', []);
app.controller('my_ctrl', function($scope, $http) {
  $http.get("form-checkbox-data.php") // data source for selection 
  .then(function (response) {
	  $scope.Python =;   // true
	  $scope.Angular =; // false
	  $scope.JQuery =;   // true

Output of the file form-checkbox-data.php in JSON format is here

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-2023 All rights reserved worldwide Privacy Policy Disclaimer