Most voted "checkbox" questions
Reference tag for checkbox component in several languages/frameworks.
Learn more…308 questions
Sort by count of
-
12
votes3
answers464
viewsShould the checkbox label be on the right or left of the controller?
Usually we put the label to the left of the data entry control. Well, it has layouts but this is a common good. By linearity would be the case of label continue left. But it’s very common to see the…
-
11
votes2
answers680
viewsIn HTML what is an Undetermined Checkbox and how to use this status along with CSS?
As far as I knew a input of the kind Checkbox could have three states, checked, unchecked and disabled. But it seems he has a fourth state which is the undetermined. See in the image a comparison of…
-
9
votes2
answers11971
viewsHow to count selected checkbox quantity
I’m trying to make a code that checks how many checkboxes are checked by clicking a button, because I’m making a system that duplicates records. I have a list with several checkboxes, and when the…
-
8
votes2
answers590
viewsCheckboxes from Codeigniter database
I have a database with a table called tblapoio, with 4 fields (id, descricao, valor, tag) Needed to make a form with a list of checkboxes with these values that exist in the table. I am using…
-
7
votes1
answer11995
viewsKeep checkbox selected by default
How can I make my checkbox appear checked for everyone who enters the site once it has been checked? I am creating in the html field of Wix, free version. The code template I’m using is as follows:…
-
7
votes1
answer761
viewsVuejs: how to check all checks and count your quantity?
The problem is this: I have several lists with a title, where it serves as a "select all" but it should select only the checkboxes that are your "brothers". But I can’t check them in the "select…
-
6
votes1
answer1063
viewsHow do I make a checkbox table (Access Level Table) responsive?
I don’t know if anyone has ever come across this type of structure. But here’s the thing, I need to leave this image table below responsive. Has anyone seen anything, knows how, or has any idea how…
-
6
votes0
answers320
viewsAdd checkbox to a Jtree
I’ve looked around for plenty of examples JTreeIt’s checkboxes but it all seems very complex. Does anyone know a simple way, if there is one, to add to a JTree that I dragged to my frame, a checkbox…
-
6
votes2
answers970
viewsInput radio that looks checkbox?
I need to do a quiz, and the alternatives are radio inputs, but it looks like custom checkbox. What’s the best way to do that? .tabs-below > .nav-tabs, .tabs-right > .nav-tabs, .tabs-left >…
-
5
votes2
answers585
viewsHow to change Checkbox with Dropdownlist onChange in ASP.NET MVC Table?
I am developing a site with ASP.NET MVC and Razor, I have in one of my pages a table with some columns. I have in this table a State column whose has a Checkbox and another column containing a…
-
4
votes2
answers213
viewsHow to get value from a checkbox
When I submit the form input does not return the value of checkbox and says that the $_POST['newsconf'] there is no. HTML <input type="checkbox" id="newsconf" name="newsconf" value="1"/>…
-
4
votes2
answers2123
viewsLaravel checkbox checked or not checked according to Database
I need some help on Laravel on how to "check checkboxes" on a form. I have a table colors, today with 12 different colors but can be as many as I want. And a table corproduto. The colors.id =…
-
4
votes1
answer78
viewsCheckboxes in Alertdialog always return the same values
I have a AlertDialog with a custom layout with 2 checkboxes. But even if I click one of these checkboxes, by clicking the accept or cancel buttons (alert.setPositiveButton or the…
-
4
votes2
answers2274
viewsHow to use an angular input checkbox using Array?
I’m trying to use a Array in a input[type=checkbox] with Angular 1, but was unsuccessful. angular.module('app', []) .controller("Ctrl", function ($scope){ $scope.campos = [{nome: "Brasil"}, {nome:…
-
3
votes3
answers331
viewsFind which items have been marked - Help with logic
I have 4 Checkbox, which when selected will assign their values in a variable. The result will be saved in only one field in the BD. When loading these Checkbox, I need to make an account to know…
-
3
votes2
answers600
viewsEnable select HTML with
I have a table, where fields start disabled, and in a checkbox I choose which field to enable. Tagged input, works perfectly. But when I try to use with the select the same script does not work. I…
-
3
votes2
answers863
viewsDiv to organize checkbox
I have the following div: <div class="col-sm-6"> <input type="checkbox"> Touch Screen <input type="checkbox"> Wi-fi <input type="checkbox"> Bluetooth <input…
-
3
votes2
answers1379
viewsMark/deselect all dynamically created checkboxes
I’m creating checkboxes from the comic book. I have another one that defines whether all the other checkboxes are checked or not. When I run the first time it works well, but the second time it…
-
3
votes2
answers300
viewsHow to insert checkbox dynamically from Python/Flask code?
I am trying to create a script in Flask and came across the following situation: I have in my code a for that sweeps the subdirectories of a root directory: for root, dirs, files in…
-
3
votes2
answers1997
viewsHow to select and pick values from all checkboxes with the property checked?
I realized that "how to select all checkboxes with the property .checked marked is a very recurring question in web development, so I will post a solution here, using Jquery. How to select and…
-
3
votes1
answer100
viewsKnow which checkbox is clicked
I have 20 static checkboxes, when I click on one of them I run a function through the onClick. This may be a stupid question, but how do I know exactly which of the 20 checkboxes was clicked? I…
-
3
votes1
answer35
viewsGet the drawable used as a Checkbox image
Whenever I have saved the image associated with a checkbox through the method imagem = minha_checkbox.getButtonDrawable(); always gives me a mistake called call requires API level 23 (current min is…
-
3
votes2
answers364
viewsHow to create Checkbox via programming
How to create several Checkbox's via programming?
-
3
votes2
answers489
viewsCheckbox with External Checkbox
I have a Form with a Dropdownlist with Checkbox inside, and I have an external Checkbox that selects and unchecks all. My question is this:. When I uncheck one of the items in Dropdown the "Select…
-
3
votes2
answers634
viewsHow to mark/deselect checkboxes per column using Jquery
Here at the company we are doing a plant management. The apartments/units that have equal end (for example, Apto 1, Apto 11, Apto 21) and so on, are below each other in the construction and for this…
-
3
votes1
answer475
viewsJSON array with Angularjs checkbox
I am trying to form a JSON with what is selected by checkbox, but when I select it inserts, but when I try to remove the check in, it inserts again. The correct would be to work in that way, but…
-
3
votes1
answer410
viewscheckbox "select all" jquery and Cakephp
Hi, I have one foreach in a table that lists several checkboxes. I need to do a function jquery that by clicking on the checkbox of <th> selecione todos the next checkboxes <td>. Look at…
-
3
votes1
answer164
viewsCheck checkbox data that has variable names
I have a routine in PHP that generates a list with ten to fifteen names, and along with each name generates a checkbox that should be checked if there is a missing work of that name, if there is no…
-
3
votes1
answer2292
viewsHow to get the value of the value and also the name of the checkbox at the same time as selecting jquery
I need to get the name of checkbox selected as soon as I click one of the checkbox that exist on the page. The value I already got it, but I need to also take the value of name. Could someone help…
-
3
votes2
answers1774
viewsCapture values after an input checkbox
Good morning, I have a 'Care' form where there is a checkbox for each service. Currently I can get the id of each checkbox selected, put in an array and print this array, but that’s not my goal. I…
-
3
votes1
answer392
viewsFilter with chekbox mysql php
Could you help me as I would concatenate strings in this search, passing which table is right if it would be i or c? select i.nome from imovel i join cidade c where c.nome in ("Campo…
-
3
votes1
answer1371
viewsHow to uncheck a Checkbox when dialing another?
I wish that couldn’t happen. The user clicking on the other CheckBox, disable the one previously marked. Mainactivity.java package genesysgeneration.umouoto; import…
-
3
votes2
answers269
viewsSelect in windows form c#
Imagining I have 3 checkbox: 2.9.1 2.9.2 2.9.3 I wanted, that I click on the 2.9.3, selects me all that are behind. It’s the kind of a select all, but only select me from a given number upwards that…
-
3
votes2
answers1405
viewsAdd a checkbox column to the datagridview
How to add a Checkbox column in Datagridview ? I need to do this for the user to select the Datagridview line with the Checkbox and then click the Save button. private void…
-
3
votes2
answers102
viewsAdd new checkboxes with ajax
Hi, I’m having a problem with my code, it’s a little complicated to explain, but I’ll try. My goal is the following, when clicking on checkboxes, a target is selected and added in the textarea…
-
2
votes2
answers2564
viewsMark all checkboxes of a Datatable table?
I have a ckeckbox that intends to brand all the options available in a table Jquery-Datatabeles, but after the next pagination Checkbox were not marked, that is, on the second page they are no…
-
2
votes1
answer4475
viewsHow to create an array with <input> data with checkbox checked?
With this script, written summarized because you know better than me. <?php $query = "select from table where status='0'"; $i=0; while (mysqli_fetch_array) echo '<input type="hidden" value="'…
-
2
votes1
answer290
viewsHow to mark next checkbox
From the current checkbox selection, how to mark the next checkbox element and disable all other. I have this code, which when dialing a checkbox consequently all the others are deactivated, but I…
-
2
votes1
answer2569
viewsHow to limit the amount of 'checkbox' selected?
I have a form with 5 (five) checkbox. I wish the user could just dial 3 (three) of those 5 (five). How do I do this validation using jQuery or Bootstrap? Thanks to all for their cooperation.…
-
2
votes1
answer3659
viewsHow to customize checkbox/radio without using background: url?
Whenever I search for "customize", "checkboxes" and "radios", examples appear using background:url(image.png). There is a way to customize a "checkbox" with "CSS only" without use background:url?…
-
2
votes1
answer348
viewsCheckbox checked/unchecked does not obey instructions
To Activity is started with the layout activity_home and the CheckBox unchecked. When I touch CheckBox, the layout becomes the activity_home_avancado, however the Checkbox remains unmarked. At the…
-
2
votes2
answers240
viewsCheckbox automatically checked in array
I’m cracking my head to set a checkbox as marked. I know the markup syntax (<input checked>) but this particular checkbox is being mounted from an array and I couldn’t, and I don’t even know…
-
2
votes3
answers2837
viewsStore multiple checkboxes in a single column with PHP + Mysql
I’m having trouble storing multiple checkbox in the same table field. In this case, by filling in the form and marking more than one checkbox, it stores only the value of the last checkbox. Here are…
-
2
votes2
answers1323
viewsSave Checkbox Values in Android Studio
I’m in a project that has many checkboxes, and they have to be stored permanently, IE, when the user closes the app and reopens it has to be marked. Would you like to know how to save checkbox modes…
-
2
votes2
answers5307
viewsHow to disable checkbox without using disabled?
How could I inhibit the alteration of a checkbox unused disabled, given that I want to send it via form. <input type="checkbox" name="option1" readonly="readonly" checked="checked"/> // esta…
-
2
votes1
answer239
viewsHow to pick up a clicked multidimensional checkbox
I have a checkbox group and I need to get the checkbox that the user clicked, with this, I need to manipulate others who are from the same group. <input type="checkbox" name="grupo[1][1][]"…
-
2
votes2
answers2640
viewsTake data attribute value and apply as text in another html element
I have a series of checkboxes in an interface that are already configured to display/hide other elements of the interface conditionally. In this same interface I have a div set to display messages…
-
2
votes1
answer757
viewsHow to fetch values only from the checkbox selected in codeigniter
I have dynamic checkbox, and wanted to fetch the values of the ones that are selected, how to do this with codigniter: Model to go to the fields and create the required checkbox: public function…
-
2
votes1
answer446
viewsTaking data from the checkbox and sending it to the bank
I am creating a form and need to send to the bank the selected checkbox. I have the table conta, conta_categoria and categoria. In the conta_categoria have the id_conta and the id_categoria. How…
-
2
votes1
answer1141
viewsPassing values from checkbox
Good afternoon, I need to pass the values selected from a checkbox to a page through a form by Post and save them in a database, but I’m not getting, could help me? Follows the code: Form: <form…