Questions tagged as 'checkbox'

1
answer

Catch value of the data-atrabus 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 to the user also conditionally dependin...
asked by 20.05.2015 / 00:43
1
answer

How to get values from the first column that is a checkbox of a GridView?

I have a GridView and I need to get the values from the first column of the Grid. My first column is a checkbox, I need to make sure they are checked and get their values.     
asked by 18.08.2014 / 16:47
1
answer

How to use svg (or div) to click and select the corresponding checkbox

I have a form that is a revenue search filter. In this filter I have a checkbox group for the category: <form method="get" action="/busca"> <h4>Categoria</h4> <input type="checkbox" name="categoria[]" value="entrada"&g...
asked by 05.09.2018 / 16:12
2
answers

RadioGroup in ListView does not maintain selection after scroll

I have a Listview with some information and within them have a RadioGroup, but when I roll all my screen checkbox is unchecked coz the listview is creating these checkbox again. I need to have my checkboxes tick when scrolling the page. Here...
asked by 30.06.2017 / 18:43
1
answer

Stylized checkbox in Bootstrap does not work

Good afternoon, I stylized a checkbox group. Only clicking it is not checked. I followed all the steps to make the change and even then I can not leave it selected. Could someone see my code in codePen and tell me where I might be going wrong?...
asked by 18.12.2016 / 18:47
1
answer

Delete variable provided when unchecking Checkbox

I have a code that saves in a textarea values from a checkbox, but I can not get the value to be cleared from the textarea when the checkbox is unchecked. var checkbox = document.getElementsByName('CP[]'); var teste = []; function ad...
asked by 24.05.2016 / 18:44
1
answer

Receive array values

How do I get the values for this checkbox? <input type="checkbox" name="Item[<?php echo $IDCatalogo; ?>][<?php echo $IDItem; ?>]"> foreach( $_POST['Item'] as $key => $n ) { print "<p>".$n." | ".$key....
asked by 19.09.2015 / 20:39
1
answer

Replace Checkbox by Image

Hello, I do not know if this is the name of what I want. As you can see on this site: link When clicking on an image it is selected, I would like a similar code or one where clicking on the image the checkbox would be selected.     
asked by 08.09.2015 / 18:27
3
answers

if / else condition to mark / uncheck checkbox

I would like to know what a condition to uncheck all my ckeckbox . function marcarDesmarcarTodos() { for (i = 0; i <= 500; i++) { document.getElementById('seleciona_ativarDesativar_'+i).checked = true; } } I tried i...
asked by 08.05.2015 / 16:02
1
answer

Pass array of a checkbox as parameter

I'm developing in PHP a basic system, and on the home screen I'm listing all registered users. For each user, I have a checkbox that gets the value of the user code. I would like to check if the checkbox is correct and how would I go about sendi...
asked by 31.10.2014 / 10:47