mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
Update hx-target.md
This commit is contained in:
parent
c6f21c3b42
commit
7a097dc49b
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user