The basics: hx-preserve episode artwork

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/

Episode metadata supplied by the publisher feed · Published Feb 9, 2024

Embed this episode

NOW PLAYING

The basics: hx-preserve

0:00 2:32

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

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!