Skip to content

Commit

Permalink
33695 radio button constraint validation (#33925)
Browse files Browse the repository at this point in the history
* 33695 radio button constraint validation

* Update files/en-us/web/html/element/input/radio/index.md

* Update files/en-us/web/html/element/input/radio/index.md
  • Loading branch information
estelle committed Jun 6, 2024
1 parent e54eea7 commit 84ae0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/html/element/input/radio/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Beyond accessibility, this is another good reason to properly set up `<label>` e

## Validation

Radio buttons don't participate in constraint validation; they have no real value to be constrained.
In the case of a radio button with the [`required`](/en-US/docs/Web/HTML/Attributes/required) attribute set, or a same-named group of radio buttons in which at least one member has `required` set, a radio button needs to be selected for the control to be considered valid. If no radio button is checked, the [`valueMissing`](/en-US/docs/Web/API/ValidityState/valueMissing) property of a {{domxref("ValidityState")}} object will return `true` during validation, and the browser will ask the user to select an option.

## Styling radio inputs

Expand Down

0 comments on commit 84ae0b4

Please sign in to comment.