htmx/www/content/attributes/hx-validate.md
2023-03-18 11:29:38 -04:00

294 B

+++ title = "hx-validate" +++

The hx-validate attribute will cause an element to validate itself by way of the HTML5 Validation API before it submits a request.

Form elements do this by default, but other elements do not.

Notes

  • hx-validate is not inherited