diff options
Diffstat (limited to 'www/content/attributes/hx-include.md')
-rw-r--r-- | www/content/attributes/hx-include.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/content/attributes/hx-include.md b/www/content/attributes/hx-include.md index 5001b8ea..360a740e 100644 --- a/www/content/attributes/hx-include.md +++ b/www/content/attributes/hx-include.md @@ -1,5 +1,6 @@ +++ title = "hx-include" +description = "The hx-include attribute in htmx allows you to include additional element values in an AJAX request." +++ The `hx-include` attribute allows you to include additional element values in an AJAX request. The value of this @@ -14,7 +15,7 @@ attribute can be: * `next <CSS selector>` which will scan the DOM forward for the first element that matches the given CSS selector. (e.g. `next .error` will target the closest following sibling element with `error` class) * `previous <CSS selector>` which will scan the DOM backwards for the first element that matches the given CSS selector. - (e.g `previous .error` will target the closest previous sibling with `error` class) + (e.g. `previous .error` will target the closest previous sibling with `error` class) Here is an example that includes a separate input value: |