Most voted "checkbox" questions
Reference tag for checkbox component in several languages/frameworks.
Learn more…308 questions
Sort by count of
-
2
votes1
answer442
viewsUpdate table field only marked with php mysql checkbox
@Leo Caracciolo worked out the way you did in this post here, but I have another problem: there are students who are enrolled in several courses, ie the student id is the same , but the course id in…
-
2
votes0
answers68
viewsFilter database by checkbox
This displays all the data... public function getProdutosHome($limit = false){ if($limit == false){ $query = "SELECT * FROM `fretes` ORDER BY id_frete DESC"; }else{ $query = "SELECT * FROM `fretes`…
-
2
votes1
answer140
viewsCustom jcheckbox does not appear
I’d like to exhibit a JCheckBox larger than normal by default interface. After some searches I found in the link Customize Jcheckbox icons an example to be used, but it does not change the size of…
-
2
votes1
answer154
views -
2
votes2
answers6584
viewsMultiple checkbox and save to bank
I have a form on which I will be able to mark several checkbox at the same time and wanted to know how I identify those marked and save them in the database. On the bench I’ll have a table and a…
-
2
votes0
answers98
viewsHow to save checkbox in database?
My doubt is very simple, but I did not find exactly the command I want and I hope you can help me. I have a vehicle budget page and I want to do a checkbox to select between three models of wheels…
-
2
votes2
answers560
viewsRescue data from checkbox stored in the bank
I am recording data from 6 checkboxes in the database. I am treating each one separately, as below: <tr> <td>Tabela Nutricional:</td> <td><input type="checkbox"…
-
2
votes2
answers127
viewsLoading Grid data with Checkboxcolumn
I am creating a form to perform a registration for a product license. This form is used to record which solution a customer has. In the form to add a product just select product and the client. I am…
-
2
votes1
answer567
viewsSet text if selected android checkbox
I have the following checkbox: <CheckBox android:id="@+id/papel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Papel" /> if it is selected is to write…
-
2
votes3
answers391
viewsInsert multiple mysql checkbox records
are trying to enter in the database information of multiple checkbox at once , for example a news is related to more than one category then and only select the categories and save , however this…
-
2
votes2
answers831
viewsCheckbox condition isChecked
Hello, I am using a Checkbox and I would like that if it was Checked, it becomes visible a Layout. I’m using the code below and it only works for when it is clicked, but I already want to leave it…
-
2
votes1
answer4115
viewsProblem in HTML checkbox size
I have a problem with the size of my checkboxes. I isolated ul with a class, so that this element did not take any characteristic of the other uls for which I had already defined a style. Would…
-
2
votes2
answers2990
viewsHow to align a checkbox next to a label?
I would like to align my label with the checkbox using CSS, so that the label does not get below the checkbox. Here’s a print of how I’d like it to look: Mine is getting like this: body { display:…
-
2
votes1
answer580
viewsDeleting records marked with checkbox
I wish I could delete multiple records from a table just by selecting the records using the checkbox, Like Gmail, I select the emails I want to delete or mark as read. Because when I need to delete…
-
2
votes1
answer367
viewsUpdate only records marked with checkbox at once php
I have a select that carries a series of records. Behold, in these records I need to apply an up and that, in my head, the best way would be using a checkbox field, so that when the user checked the…
-
2
votes1
answer66
viewsSmooth transition checkbox menu, without using "visibility:;" or "display:None;"
I have a small menu here, which has the use of overflow:Hidden; /max-height:; and height:; to make a smooth transition by clicking on the checkbox and displaying the subs-menus, however I am not…
-
2
votes1
answer97
viewsJquery Pick Value Nearest Checkbox by Line
I need help with the following: I want to take the checkbox that is disabled and play on console 0 for what is disabled, and 1 for what is enabled. My source looks like this: (Asp.net mvc) @model…
-
2
votes2
answers187
viewsWhen selecting checkbox it selects other checkbox
I am not aware of Javascript and I am using Cakephp 3 framework. So my problem is, I have a list where each item on the list has 2 checkbox, and when I select the first checkbox for one item it…
-
2
votes2
answers154
viewsCheckbox with id in name
I would like to have a checkbox button on the site to enable and disable some action, I am using ajax to make the change immediately, the action would not need an F5 to work. The problem is that I…
-
2
votes1
answer67
viewsClick a button and select a checkbox
My problem is that I have a list, in this list all items have a button and a checkbox, what should happen is, I click the button of this item and it select only the checkbox of this item. But what I…
-
2
votes2
answers86
viewsCombining CSS selections with parent child and sibling elements
I have the following code: <ul class="menu"> <li><label for="menu1">Menu 1</label></li> <li><label for="menu2">Menu 2</label></li>…
-
1
votes1
answer1330
viewsHow to get values from the first column which is a checkbox of a Gridview?
I have a Gridview and I need to get the values from the first column of Grid. My first column is a checkbox, I need to check that they are marked and if yes get their values.
-
1
votes2
answers135
viewsCheckbox with dependencies
In case the unlimited amount of checkbox. When checking the checkbox a line with other checkboxes with the desired amount of that ingredient is released: Ingrediente Quantidade [ ] Alface id#1 [X]…
-
1
votes1
answer384
viewsDoubt when picking up repeated checkbox group
I am making a registration form where I have every day of the week to select <input type="checkbox" name="dias[]" value="Segunda"> Seg <input type="checkbox" name="dias[]" value="Terça">…
-
1
votes1
answer267
viewsGet multiple checkbox tag values
I am displaying a table with data coming from a xml, for this I am going through the array @ag and assembling the elements of each line. Each line has a check_box_tag to select the elements to be…
-
1
votes1
answer672
viewsSum selected values from a checkbox
I am developing an application for a beauty salon, I am using the checkbox component on the following screen: However, when selecting a checkbox and then deselecting, the program performs the…
-
1
votes1
answer640
viewsPass array of a checkbox as parameter
I am developing in PHP a basic system, and on the home screen I am listing all registered users. For each user, I have a checkbox that receives the value of the user code. I would like you to check…
-
1
votes1
answer1864
viewsI have a checkbox set but only wanted one selected
I have a set of checkbox but only wanted a selected one and, if they selected another, the one that was selected. I’ve tried that, but it doesn’t work: if (chkfemenino.isChecked()) { params.add(new…
-
1
votes3
answers2230
viewsif/Else condition to mark/deselect checkbox
I wonder what a condition it would be to cancel all my ckeckbox. function marcarDesmarcarTodos() { for (i = 0; i <= 500; i++) { document.getElementById('seleciona_ativarDesativar_'+i).checked =…
-
1
votes1
answer504
viewsCount and access checkbox marked
I need to count checkboxes that are marked on a panel and are horizontal. It’s Windows form, C#. I couldn’t format a listbox to the horizontal, so it’s in a panel. But I’d like to count them and…
-
1
votes1
answer81
viewsCheckbox in theme options
I’m creating a options page for my theme in Wordpress, but I am with a certain difficulty related to checkbox. The idea is as follows: If the checkbox infra_bloco1_visivel is marked it will enable a…
-
1
votes1
answer1052
viewsReplace Checkbox with Image
Hey, I don’t know if this is what I want. As you can see on this site: http://eyosongive.us/lolk/ When clicking on an image it is selected, I would like a similar code or one where when clicking on…
-
1
votes1
answer4981
viewsHow can I save checkbox in the database with php?
I have several checkbox components on the site, each with the value of a movie name, how can I save in the bank? HTML of one of them: <input type="checkbox" class="checkbox" name="filme"> Do…
-
1
votes1
answer1642
viewsHow to return to View items checked by Checkbox?
I am developing a project in ASP.net MVC. In my registration form, I have a checkbox where I select the items I would like to add in the BD. My edit form, I have to get these checked items and show…
-
1
votes1
answer55
viewsReceive array values
How I receive the values of this checkbox? <input type="checkbox" name="Item[<?php echo $IDCatalogo; ?>][<?php echo $IDItem; ?>]"> foreach( $_POST['Item'] as $key => $n ) {…
-
1
votes3
answers2411
viewsHow to record content in a classic Asp Session and move to a mvc page?
How to record the checkbox in a session to be able to use it on another page ? It is possible ?
-
1
votes2
answers756
viewsCheckbox in Datagridview C#
Good afternoon. I have a datagrid view with a checkbox type column, tied to a Datatable with the checkbox type column as well. My problem is this: I have to go through a attendance list, if the…
-
1
votes2
answers1486
viewsHow to change the checkbox color of a Multiselectlistpreference
I wonder if you can change the colors of those CheckBox which is currently green (standard color) for my accent color app.…
-
1
votes0
answers44
viewsLeave checkbox required
I need a function where selecting a checkbox is required. I have 6 checkboxes and user must select only one. Ex: <input type ="checkbox" name="xx"...> <label for="xx".......> <input…
-
1
votes2
answers730
viewsHow do I checkbox Asp.net mvc database
Hello. I’m doing a project for a music player. In the Playlist register, I would like the songs to appear in checkbox so I can mark the desired ones and save in the database. This is my controller:…
-
1
votes0
answers374
viewsLaravel Checkbox Recording/Editing 5.2
Hello, I’m developing a Course Registration in Laravel 5.2. I created CRUD perfectly, it creates, edits and deletes everything right, but in this register has 3 items that are of type CHECKBOX, I…
-
1
votes1
answer153
viewsJava - Import Excel with combo and checkbox
I need to import an excel spreadsheet using java. Only the spreadsheet has selection values like checkbox lists and combos. As in the example below: Someone has an example of java code that can…
-
1
votes2
answers558
viewsProblem with Session variable
On my website, I have a part of the code where two checkbox options should be shown for the check-in date case with difference greater than or equal to 72 hours (or 3 days) compared to today.…
-
1
votes1
answer209
viewsCheckbox checked according to string
I have a string in the format ["0,1,0,1,0,1,0,0"]. Where 1 is checked and 0 is unchecked. I also have a grid where I still have a checkbox at the first Oluma. I need to mark the checkboxes according…
-
1
votes1
answer159
viewsPHP, marking checkbox for printing
I’m in the following situation, and I was wondering if you could help me. I have a page where I mark checkbox and send to the printing page. But I’m not getting the loop, for the code to see each id…
-
1
votes2
answers1050
viewsCombobox with Checkbox and Input Text options
Good afternoon, you guys, I wonder if it is possible in a form to create a combobox with options to select in checkbox and text box to fill with a value. (As picture) and then I can send the…
-
1
votes0
answers42
viewsProblems with listing an entity as a checkbox in Symfony2
My system has two related tables called material and items_budget. The second table has a form that lists the name of each material in a checkbox, followed by two more input, one for your quantity…
-
1
votes0
answers57
viewsSymfony2 - Only one field has its value read, the others of this same field are NULL when submitting form
I have two related tables: material and items_budget. The table items_budget has a form that has a field that lists the name of all material in a group of checkbox, and next to each checkbox has two…
-
1
votes3
answers913
viewsCheckbox Fields From Database
I have 3 tables, respectively: Vehicles veculo_id, veculo_name. Accessories acessorio_id, accessorio_name Vehicles veculo_id accessorio_id On the vehicle registration page the fields accessories…
-
1
votes3
answers636
viewsHow to deselect checkboxes when only one is selected?
I have nine checkboxes on my page. <input id="chkCamp1" type="checkbox" style="margin-left: -25px" onclick="showMe('optCamp1', this)"> <input id="chkCamp2" type="checkbox"…