mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
13 lines
294 B
Markdown
13 lines
294 B
Markdown
+++
|
|
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.
|
|
|
|
## Notes
|
|
|
|
* `hx-validate` is not inherited
|