hx-pod
hx-pod
Lazarus
Htmx request headers: Hx-Target
4 minutes Posted May 1, 2024 at 8:49 pm.
0:00
4:27
Download MP3
Show notes

Let's your server know what the id is of the hx-target!
You need 2 things to send this request header:
1. Use the attribute: hx-target="some_id"
2. Use a DOM id as the target: some_id needs to be an id, not another css selector