Questions tagged [checked]

The `checked` attribute of the HTML `input` tag used to set the checked state of the control to “on” by default. Used to set the state of the `input` controls with the `type` attribute `"checkbox"` or `"radio"`.

The checked attribute of the HTML input tag used to set the checked state of the control to “on” by default. Used to set the state of the input controls with the type attribute "checkbox" or "radio".

Used to present one or more checkboxes in such a way that the state of the control at the point of page load is checked, and the user has to opt out rather than opting in, or perhaps presenting the user with a form — including a series of checkboxes — that he or she has previously filled in, and preserve the state of the selections that were made. The checked attribute allows you to set the checked state to “on” by default.

The checked attribute is also used for radio input controls. Unlike the checkbox, only one in a range of related radio inputs can be selected, and the checked attribute is used to identify which one is selected. If you accidentally mark as "checked" a number of radio inputs that share a given name attribute, the last one that’s marked as such will be selected.

Details: http://reference.sitepoint.com/html/input/checked

813 questions
-1
votes
1 answer

Extjs Check Tree node icon issue

I am new in Extjs, but i build a Extjs tree using Json data, also provided it checkbox in the tree nodes. But my requirement is now to have a new icon before the checkbox (parallely) of each node and also need to find the events on those icon and…
Nitin Soni
  • 87
  • 1
  • 13
-1
votes
1 answer

Checkboxes, javascript and php. Not loading results

I have a javascript code that reads from a set of checkboxes and loads a php in case one or more checkboxes are checked. This php will load only the items that are selected. However, now I click on the checkboxes and nothing happens. I am not sure…
samyb8
  • 2,560
  • 10
  • 40
  • 68
-1
votes
2 answers

Issues changing jQuery prop() to hasclass() function

I have a interface that uses the click attribute of a checkbox to show/hide a div. This is an example chunk of code to show or hide a feature: Display/Hide jQuery Code /* Only display LinkedIn sortable icon if "Display LinkedIn" is ticked…
Jason
  • 4,899
  • 12
  • 47
  • 56
-1
votes
2 answers

What value is returned by jquery's :checked?

What value will the variable checked have if the checkbox is checked? What is its value if the checkbox is unchecked? HTML: jQuery: var checked = $('input#my_id').is(':checked');
Ajay Mohite
  • 119
  • 3
  • 13
-2
votes
1 answer

How can i make an auto image slider by Jvascript?

I'm making an auto image slider and this is my html and js:
suga sunshie
  • 107
  • 2
  • 7
-2
votes
3 answers

check select box when value = one of other value

I have a value like this : $brands = "1,2,3,4,5" and I have this : " /> I want to write source so when $brand_id is one of $brands check box checked…
Ebad ghafoory
  • 1,332
  • 3
  • 14
  • 25
-2
votes
2 answers

Check Radio Buttons by Class

$(".test").each(function(i) { this.checked = true; });
Remco
  • 361
  • 2
  • 18
-2
votes
2 answers

can you check a hidden checkbox if it's immediate parent is hidden as well?

I would like to check and uncheck a hidden an HTML checkbox based on a related event. Unfortunately when i attempt to do this and i look at dev tools in firefox and chrome. It does not seem to be possible. I am using jQuery to check and uncheck the…
Dan
  • 2,209
  • 3
  • 23
  • 44
-2
votes
1 answer

Checkbox in li element doesn't trigger css :checked

Is this impossible? I've created a responsive menu system, but the :checked event of my checkbox doesn't get caught in my css CSS #sectiona:checked + #asection { display: block; } HTML
  • Paul Long
    • 1
    • 3
    -2
    votes
    4 answers

    Javascript, if value is a certain text and checked, show image

    I'm trying to automate my ribbons for my GTA ONLINE crew website, and rather than having to hand-code; I create checkboxes with "ultimate-member" and then use javascript to check if a field is checked and display the image. Here's what I…
    Joshua Price
    • 67
    • 1
    • 11
    -2
    votes
    2 answers

    jQuery mouseup event not detecting checked attribute?

    I'm trying to monitor any changes to the "checked" property of a checkbox on both mousedown() and mouseup(), but seem to be having issues. The mousedown event is registering the correct state of the checkbox (checked or un-checked), but the mouseup…
    Amygdala
    • 83
    • 1
    • 9
    -2
    votes
    2 answers

    Check the parent checkbox with . jQuery

    Basically I am trying to write a js func that if I check a child checkbox the parent checkbox also checks, if not already checked. I am using jquery here is my html:
    -2
    votes
    1 answer

    Not able to get input:checked feature to work

    I am trying to create a product page. I want that when someone, clicks on Buy, a pop-up menu should open. I am trying to use the Checkbox hack to make this work. However, I am unable to do so. The buy button toggles the checkbox succesfully, but the…
    -3
    votes
    4 answers

    If checkbox is checked in php

    I have use the following code order.php