Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created October 30, 2024 21:12
Show Gist options
  • Save dcomartin/76d7f1e95ce1a1ff64ed68fd38bfd65e to your computer and use it in GitHub Desktop.
Save dcomartin/76d7f1e95ce1a1ff64ed68fd38bfd65e to your computer and use it in GitHub Desktop.
<div hx-target="this" hx-swap="outerHTML">
<div><label>First Name</label>: Joe</div>
<div><label>Last Name</label>: Blow</div>
<div><label>Email</label>: joe@blow.com</div>
<button hx-get="/contact/1/edit" class="btn primary">
Click To Edit
</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment