The basics: hx-preserve
Updating a chunk of the DOM is easy -- but what if you wanted to leave one element alone?
<div id="leave-me-alone" hx-preserve>Content preserved</div>
Content will NOT be swapped out in the request, as long as the id in the request data matches.
https://htmx.org/attributes/hx-preserve/
<div id="leave-me-alone" hx-preserve>Content preserved</div>
Content will NOT be swapped out in the request, as long as the id in the request data matches.
https://htmx.org/attributes/hx-preserve/