summaryrefslogtreecommitdiffstatshomepage
path: root/www/content/attributes/hx-validate.md
blob: 2a92714a0b2ccb9fc0ed6931583456bd49c8d1e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
+++
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