EPISODE · Feb 9, 2024 · 2 MIN
The basics: hx-preserve
from hx-pod · host Lazarus
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/
Embed this episode
NOW PLAYING
The basics: hx-preserve
0:00
2:32
1×
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.
Frequently Asked Questions
How long is this episode of hx-pod?
This episode is 2 minutes long.
When was this hx-pod episode published?
This episode was published on February 9, 2024.
Is there a transcript available for this episode?
Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.
Can I download this hx-pod episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!