![]() ![]() That means the visual indeterminate state masks the real value of the checkbox, so that better make sense in your UI! The checkbox is still either checked or unchecked as a state. Or jQuery style: $("#some-checkbox").prop("indeterminate", true) // prop is jQuery 1.6+ var checkbox = document.getElementById("some-checkbox") It is a property of checkboxes though, which you can change via JavaScript. ![]() You can’t make a checkbox indeterminate through HTML. Here are some things to know about indeterminate checkboxes: Visually, there are actually three states a checkbox can be in: checked, unchecked, or indeterminate. They can have any value, but they either submit that value (checked) or don’t (unchecked) with a form submission. Checkbox inputs can only have two states: checked or unchecked.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |