tagged [checkbox]

How can I make a checkbox readonly? not disabled?

How can I make a checkbox readonly? not disabled? I have a form where I have to post form values to my action class. In this form I have a checkbox that needs to be readonly. I tried setting `disabled...

4 Oct at 03:0

Get the value of checked checkbox?

Get the value of checked checkbox? So I've got code that looks like this: I just need Javascript to get the value of whatever checkbox is currently checked. : To add, there will only be ONE checked bo...

24 Jul at 00:50

How to set default Checked in checkbox ReactJS?

How to set default Checked in checkbox ReactJS? I'm having trouble to update the checkbox state after it's assigned with default value `checked="checked"` in React. After assigning `checked="checked"`...

20 Oct at 09:30

How to uncheck checkbox using jQuery Uniform library

How to uncheck checkbox using jQuery Uniform library I have a problem with unchecking a `checkbox`. Have a look at [my jsFiddle](http://jsfiddle.net/r87NH/), where I am attempting: I use [uniform](htt...

16 Jan at 15:54

How to set checkbox.isChecked without raising event

How to set checkbox.isChecked without raising event Is there a way of checking the `CheckBox` without running the code associated to checking it? Just for visual appearance. Edit: Imagine that I want ...

2 Jul at 22:29

How to uncheck a checkbox in pure JavaScript?

How to uncheck a checkbox in pure JavaScript? Here is the HTML Code: I want to change the value to false. Or just uncheck the checkbox. I'd like to do this in pure JavaScript, without the use of exter...

18 Sep at 12:32

How to create radio buttons and checkbox in swift (iOS)?

How to create radio buttons and checkbox in swift (iOS)? I am developing an app that allows to do survey. My layout is generated from XML based questions. I need to create radio buttons (single choice...

18 Mar at 09:1

jQuery selector for the label of a checkbox

jQuery selector for the label of a checkbox If I have a check box with a label describing it, how can I select the label using jQuery? Would it be easier to give the label tag an ID and select that us...

25 Mar at 00:14

Check all checkboxes in checkboxlist with one click using c#

Check all checkboxes in checkboxlist with one click using c# I want to have a button that once clicked, it will select all checkboxes in my checklistbox. I've search the possible answers but I always ...

Testing if a checkbox is checked with jQuery

Testing if a checkbox is checked with jQuery If the checkbox is checked, then I only need to get the value as 1; otherwise, I need to get it as 0. How do I do this using jQuery? `$("#ans").val()` will...

C# Datagridview does not sort Checkbox column

C# Datagridview does not sort Checkbox column When I bind a Linq-to-sql query to a datagridview (using a BindingSource in between), the columns are sortable by default. However, this does not seem to ...

20 Feb at 12:26

Custom checkbox image android

Custom checkbox image android Is there an easy way to use a custom image for a checkbox? I'm looking to duplicate the "starred" behavior of gmail. So I want to have a checkbox that, when checked, is a...

19 Oct at 05:7

Is there a simple way to implement a Checked Combobox in WinForms

Is there a simple way to implement a Checked Combobox in WinForms Does anyone know of a simple implementation of a checked combobox in WinForms? I haven't been able to find anything when googling. I w...

11 Jan at 16:15

Why cannot change checkbox color whatever I do?

Why cannot change checkbox color whatever I do? I try to style checkbox background color, but it won't change whatever I do. I am using firefox 29 latest. Is there some rule changes in css or may be i...

14 May at 19:29

Saving CheckBox control values

Saving CheckBox control values I am using asp.net and I am trying to save checkbox values into a database. Multiple checkboxes may be entered into the same field in the database. So for instance I hav...

9 Jan at 00:13

Creating the checkbox dynamically using JavaScript?

Creating the checkbox dynamically using JavaScript? I am trying to create a checkbox dynamically using following HTML/JavaScript. Any ideas why it doesn't work? ``` var cbh = document.getElementById...

23 Jul at 17:31

Android: checkbox listener

Android: checkbox listener I want to put a Listener over a `CheckBox`. I looked for info and it is like this: ``` satView = (CheckBox)findViewById(R.id.sateliteCheckBox); satView.setOnCheckedChangeLis...

9 Oct at 00:50

WPF checkbox binding

WPF checkbox binding While it is trivial to store a checkbox's checked state in a variable using the checkbox's Click event, how would I do it via databinding? All the examples I have found have the U...

3 Feb at 09:0

post checkbox value

post checkbox value I want to post values of check boxes on booking.php page. There are many checkboxes on the page but I don't know how to post on `booking.php` page. ``` Add to Tour List

12 Jul at 10:22

Can HTML checkboxes be set to readonly?

Can HTML checkboxes be set to readonly? I thought they could be, but as I'm not putting my money where my mouth was (so to speak) setting the readonly attribute doesn't actually seem to do anything. I...

30 Sep at 21:58

Laravel blade check box

Laravel blade check box I want to set check-boxes state from database, so I write, But if I want to set 'id' to the check-box like It always set my check-box state to true. (Before user select it) So ...

11 Jun at 13:25

How to select all checkboxes with jQuery?

How to select all checkboxes with jQuery? I need help with jQuery selectors. Say I have a markup as shown below: ```

HTML checkbox - allow to check only one checkbox

HTML checkbox - allow to check only one checkbox I have some checkboxes in each row in my table. Each one checkbox has `name='myName'` because I want to select only one checkbox in each row. But somet...

20 Jun at 09:12

CheckBoxField columns in ASP.NET GridView are disabled even if ReadOnly set to false

CheckBoxField columns in ASP.NET GridView are disabled even if ReadOnly set to false I have a GridView with two CheckBoxField columns. They both have ReadOnly property set to false, but html code gene...

30 Jul at 09:15

How to prevent firing CheckedChanged event when checking a control programmatically?

How to prevent firing CheckedChanged event when checking a control programmatically? How do I prevent firing CheckedChanged event when checking a control programmatically? I usually do this the follow...

17 Jan at 22:15