Skip to content
The basics: hx-preserve episode artwork

Feb 9, 2024 2 min

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/

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

The basics: hx-preserve

0:00 2:32

No transcript yet.

Requests help us decide what to transcribe next.

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.