Skip to content

Latest commit

 

History

History

hx-preserve

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

hx-preserve

This example how to use hx-preserve to keep an element unchanged during HTMX swap(doc)

<ul><lihx-get="/htmx"><divid="get" hx-preserve="true">GET Preserved</div></li><lihx-post="/htmx"><divid="post" hx-preserve="true">POST Preserved</div></li><lihx-put="/htmx"><divid="put" hx-preserve="true">PUT Preserved</div></li><lihx-patch="/htmx"><divid="patch" hx-preserve="true">PATCH Preserved</div></li><lihx-delete="/htmx"><divid="delete" hx-preserve="true">DELETE Preserved</div></li></ul>
close