4 ms·
Can you please explain how to build a "larger" app with HTMX? The way I understand htmx, it will replace the tag itself with an ajax response from the server.
by machinelabo 6y ago
Can you please explain how to build a "larger" app with HTMX?
The way I understand htmx, it will replace the tag itself with an ajax response from the server. This is great for submit feedback and flash messages.
What if you want to click a htmx-button and replace something else outside of the tag with htmx?
- recursivedoubts 6y agoYou can use the hx-target to target other elements in the DOM: https://htmx.org/attributes/hx-target/ https://htmx.org/attributes/hx-target/ You can also use Out of Band swaps to replace arbitrary DOM content: https://htmx.org/docs/#oob_swaps https://htmx.org/docs/#oob_swaps