Sveriges mest populära poddar

hx-pod

Htmx request headers: Hx-Target

4 min • 1 maj 2024

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

Förekommer på
00:00 -00:00