From b25584aecea3b2400e1585e0a72ab094f69610de Mon Sep 17 00:00:00 2001 From: Wim Deblauwe Date: Fri, 30 Sep 2022 22:03:57 +0200 Subject: [PATCH] Add a note that the `name` attribute of an input is important (#1026) --- www/docs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/docs.md b/www/docs.md index cfb41f72..1cdb37ec 100644 --- a/www/docs.md +++ b/www/docs.md @@ -537,6 +537,8 @@ attribute on the elements you wish to be preserved. By default, an element that causes a request will include its value if it has one. If the element is a form it will include the values of all inputs within it. +The `name` attribute of the input is used as the parameter name in the request that htmx does. + Additionally, if the element causes a non-`GET` request, the values of all the inputs of the nearest enclosing form will be included.