mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-29 05:51:39 +00:00
Clarify hx-validate documentation (#2221)
This commit is contained in:
parent
f37191063c
commit
94ca5f5a36
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user