Update hx-target.md

This commit is contained in:
Ben Croker 2020-05-28 01:07:32 +02:00 committed by GitHub
parent c6f21c3b42
commit 7a097dc49b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ The `hx-target` attribute allows you to target a different element for swapping
request. The value of this attribute can be:
* a CSS query selector of the element to target
* `this` which indicates that the element that the `ic-target` attribute is on is the target
* `this` which indicates that the element that the `hx-target` attribute is on is the target
* `closest <CSS selector>` which will find the closest parent ancestor that matches the given CSS selector.
(e.g. `closest tr` will target the closest table row to the element)