About 346,000 results
Open links in new tab
  1. JavaScript Checkbox

    in this tutorial, you will learn how to use JavaScript to check if a checkbox is checked and how to get values of selected checkboxes.

  2. How To Display Text when a Checkbox is Checked - W3Schools

    Display some text when the checkbox is checked: Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, …

  3. Check/Uncheck checkbox with JavaScript - Stack Overflow

    Note that setting the checked content attribute (as opposed to the IDL attribute set with Javascript) to a non-empty string, the checkbox is checked. So if you set the 'checked' content attribute to "false", the …

  4. <input type="checkbox"> - HTML | MDN - MDN Web Docs

    Jul 9, 2025 · When you check or uncheck an ingredient's checkbox, a JavaScript function checks the total number of checked ingredients: If none are checked, the recipe name's checkbox is set to …

  5. How to Check/Uncheck the checkbox using JavaScript

    Jul 12, 2025 · To check and uncheck the checkbox using JavaScript we can use the onclick event to toggle the checkbox value. We can also check or uncheck all the checkboxes on loading the …

  6. Javascript Checkbox

    While radio buttons only allow the user to select one option at a time, checkboxes allow the users to select multiple options. You can try to click on the radio buttons and the checkboxes below:

  7. How to Get the Value of Checked Checkbox in JavaScript

    Feb 2, 2024 · This article will help you use JavaScript to check if a checkbox is checked, get the values of checked checkboxes, and select/unselect all checkboxes. There are two states for the checkbox: …

  8. JavaScript Check If a Checkbox Is Checked Guide | Built In

    Jun 5, 2024 · Checkboxes are a common way to allow users to select multiple options from a list. In JavaScript and jQuery, there are a few different ways to check whether a checkbox is checked. The …

  9. How to Validate Checkbox in JavaScript? - GeeksforGeeks

    Jul 23, 2025 · By checking the length of the array of checked options, we determine if at least one option is selected, displaying an error message if not and listing the selected options otherwise. Example: …

  10. How can I check if a checkbox is checked? - Stack Overflow

    Using javascript to get someElem.value will return the same thing ('on', by default) regardless of whether the box is checked.