Linked Questions
149 questions linked to/from How do I check whether a checkbox is checked in jQuery?
90
votes
6
answers
44k
views
Checkbox value is always 'on' [duplicate]
this is my checkbox
HTML
<label class="checkbox">
<input id="eu_want_team" name="eu_want_team" type="checkbox">
</label>
JQuery
var eu_want_team = $('#eu_want_team').val();
...
39
votes
2
answers
68k
views
get current state of check box jquery [duplicate]
I am using Bootstrap iCheck plugin. How can i find out Whether a check box is checked or not by pressing a button using jquery
$(button).click(function(){
ckb = $("#ickb").(isChecked);
});
23
votes
2
answers
40k
views
Determine if Checkbox is Checked using jQuery [duplicate]
Possible Duplicate:
Check checkbox checked property using jQuery
What is the correct way of accessing a checkbox to check if it's checked? Is it necessary to first check if that element exists ...
29
votes
2
answers
21k
views
jQuery if checkbox is not checked issue [duplicate]
Possible Duplicate:
Check checkbox checked property using jQuery
I am having an issue picking up when a checkbox is not checked.
Here is my sample code:
$(".get-the-look ul input").click(...
13
votes
3
answers
2k
views
checking if a checkbox is checked? [duplicate]
How can I check if a checkbox is checked via jQuery?
Can I just add an ID or class to the element and do this?
if($('#element').val() == 1) {
//do stuff
}
21
votes
1
answer
5k
views
Check the value in textbox is selected using jquery [duplicate]
Possible Duplicate:
Check checkbox checked property using jQuery
Can anyone let me know how to check the value is selected in the html textbox using jquery. For example the value in the textbox ...
8
votes
3
answers
3k
views
jQuery evaluate if checkbox is checked and contains the class true [duplicate]
I'm creating a multiple choice assessment using jQuery. Currently the DOM structure is as follows:
<button class="multiplesubmit">Check Answer</button>
<ul class="...
6
votes
2
answers
10k
views
JavaScript - Getting Value from switch [duplicate]
I've made a "switch" UI element using CSS that I really like. It's intended to be used for on/off scenarios. Basically, a fancy checkbox. My switch is defined in html like this:
html
<label class=...
4
votes
2
answers
5k
views
Bootstrap check if check box is checked or not [duplicate]
I have a bootstrap checkbox the problem is I can't get the value of it when it is checked. The code below is my check box.
<div class="col-md-auto">
<div class="form-group&...
2
votes
1
answer
9k
views
Show/hide input field based on checkbox [duplicate]
If the checkbox is clicked it will display an input field... so far it it is working, But if the checkbox is unchecked it should hide it, how can i do it?
<div class="checkbox">
<...
-3
votes
3
answers
6k
views
How to find out whether the check box is checked or not checked? [duplicate]
I have below code in my jsp.
<input type="checkbox" name="transport" id="bike" value="Bike"> I have a bike
<input type="checkbox" name="transport" id="car" value="Car"> I have a car
<...
5
votes
1
answer
2k
views
Jquery check if select box is selected [duplicate]
I´ve got 3 select boxes:
<div class="widget mm_select">
<label for="ctrl_Customers_Region">Region</label> <select name="Customers_Region" id="ctrl_Customers_Region" class="...
3
votes
2
answers
1k
views
How to get value of unchecked checkboxes on click? [duplicate]
I want to get value of single checkbox when it is checked and unchecked.. I am currently working on codeigniter FW. I am getting the value of checkbox when clicked on it, but i am not able to get ...
0
votes
2
answers
696
views
How do I check if multiple checkboxes are unchecked in jQuery? [duplicate]
I have 3 checkboxes I need a check to see if all 3 of them are unchecked, but so far my effort to get this to work has not been successfully.
What is the correct way to do this in jQuery?
Some of my ...
0
votes
1
answer
671
views
Check if checkbox checked javascript not working [duplicate]
Im building an mobile app check if the username and password to be save and checked on checkbox , as I want to if checked then my "checkboxcs" class will show up the checked images else none. Here is ...