From 94ca5f5a360e1e491c1acc37fdfbf89ad353a8c6 Mon Sep 17 00:00:00 2001 From: MikeMoolenaar Date: Mon, 22 Jan 2024 01:33:36 +0100 Subject: [PATCH] Clarify hx-validate documentation (#2221) --- www/content/attributes/hx-validate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/content/attributes/hx-validate.md b/www/content/attributes/hx-validate.md index 2a92714a..355f7d47 100644 --- a/www/content/attributes/hx-validate.md +++ b/www/content/attributes/hx-validate.md @@ -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 `
` elements validate data by default, but other elements do not. Adding `hx-validate="true"` to ``, `