Only One Checkbox Selected
How do I make an only one checkbox selected?
What is a only one checkbox selected? How do you make a only one checkbox selected? This script and codes were developed by Emerson Thompson on 11 August 2022, Thursday.
Only One Checkbox Selected - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Only One Checkbox Selected</title>
</head>
<body> <html ng-app="ionicApp"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>One Checkbox Selected</title> <link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet"> <script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script> </head> <body ng-controller="MainCtrl"> <ion-header-bar class="bar-positive"> <h1 class="title">One Checkbox Selected</h1> </ion-header-bar> <ion-content> <ion-list> <ion-item class="item-checkbox" ng-repeat="item in itens"> <label class="checkbox"> <input type="checkbox" ng-model="item.checked" ng-click="updateSelection($index, itens, item.title)"> </label> {{ item.title }} </ion-item> </ion-list> </ion-content> <ion-footer-bar ng-class="(selected)? 'bar-balanced' : 'bar-positive'"> <h1 class="title">{{ selected }}</h1> </ion-footer-bar> </body>
</html> <script src="js/index.js"></script>
</body>
</html>
Only One Checkbox Selected - Script Codes JS Codes
angular.module('ionicApp', ['ionic'])
.controller('MainCtrl', function($scope) { $scope.itens = [ { title: "Item 1", checked: false }, { title: "Item 2", checked: false }, { title: "Item 3", checked: false }, ]; $scope.updateSelection = function(position, itens, title) { angular.forEach(itens, function(subscription, index) { if (position != index) subscription.checked = false; $scope.selected = title; } ); }
});
Developer | Emerson Thompson |
Username | thompsonemerson |
Uploaded | August 11, 2022 |
Rating | 3 |
Size | 1,957 Kb |
Views | 74,888 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Hashtag Instagram - jQuery | 2,438 Kb |
Ripple Button - Material Design | 3,182 Kb |
CardMove | 3,699 Kb |
Milligram - Logo Animation SVG | 2,955 Kb |
Hello World - Angular 2 | 2,964 Kb |
Smooth Scrolling - Vanilla | 2,857 Kb |
Brazil Map SVG | 21,910 Kb |
Filtro de palavras com JavaScript | 2,400 Kb |
Hello World - ReactJS | 2,686 Kb |
A Pen by Emerson Thompson | 2,942 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Loading animation - freedom purchase | Rocbear | 2,567 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Em Test | Rodesco | 1,784 Kb |
Stylize Stories | Jvhti | 2,465 Kb |
Donut Chart example - MorrisJS | Capelo | 2,385 Kb |
Image grid with captions | Mchernin34 | 2,222 Kb |
Flickering Light Text Effect | Mandymichael | 3,315 Kb |
TestTube CSS | EZPK | 2,710 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!