Skip to content

Commit

Permalink
Clarify hx-validate documentation (bigskysoftware#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMoolenaar authored and FraserChapman committed Feb 16, 2024
1 parent 1aa1550 commit a398eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/content/attributes/hx-validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title = "hx-validate"
The `hx-validate` attribute will cause an element to validate itself by way of the [HTML5 Validation API](@/docs.md#validation)
before it submits a request.

Form elements do this by default, but other elements do not.
Only `<form>` elements validate data by default, but other elements do not. Adding `hx-validate="true"` to `<input>`, `<textarea>` or `<select>` enables validation before sending requests.

## Notes

Expand Down

0 comments on commit a398eca

Please sign in to comment.