https://htmx.org logo
No. You'd have an empty element (a div probably) s...
# 🔥-django-htmx
t
No. You'd have an empty element (a div probably) somewhere with
hx-swap-oob="true" id="myStatusDiv"
. Then you make sure the server includes the message in a div with that id and and attribute, such as
Copy code
html
<div id="myStatusDiv" hx-swap-oob="true" class="success">
We did the thing!
</div>
on success or
Copy code
html
<div id="myStatusDiv" hx-swap-oob="true" class="error">
We couldn't do the thing!
</div>