Add a note that the name attribute of an input is important (#1026)

This commit is contained in:
Wim Deblauwe 2022-09-30 22:03:57 +02:00 committed by GitHub
parent 51653ee93b
commit b25584aece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.