The basics: hx-preserve
from hypermedia radio Hosted by 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
No transcript yet.
Similar podcasts
Frequently asked questions
How long is this episode of hypermedia radio?
This episode is 2 minutes long.
When was this hypermedia radio 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 hypermedia radio episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.