The basics: hx-swap-oob

22/01/2024 5 min Temporada 1 Episodio 6
The basics: hx-swap-oob

Listen "The basics: hx-swap-oob"

Episode Synopsis


This is a new idea: let your response decide its own target(s)! <div id="my-update-div" hx-swap-oob="true">Updated html</div><div id="my-update-div-2" hx-swap-oob="true">More updated html elsewhere on the page</div>