Linked Questions

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(); ...
user avatar
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); });
user3316523's user avatar
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 ...
Hommer Smith's user avatar
  • 27.6k
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(...
Adi's user avatar
  • 4,024
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 }
user2888263's user avatar
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 ...
teenu's user avatar
  • 694
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="...
Dondada's user avatar
  • 421
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=...
Chad Campbell's user avatar
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&...
Maricris's user avatar
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"> <...
Santiago's user avatar
-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 <...
user1016403's user avatar
  • 12.5k
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="...
Lydia Maier's user avatar
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 ...
Shreyas Heda's user avatar
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 ...
Stig Kølbæk's user avatar
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 ...
Morgan Ng's user avatar
  • 813

15 30 50 per page
1
2 3 4 5
10