We're sunsetting PodQuest on 2025-07-28. Thank you for your support!
Export Podcast Subscriptions
cover of episode Large table pattern using htmx

Large table pattern using htmx

2024/6/20
logo of podcast hx-pod

hx-pod

Shownotes Transcript

Mentioned, how to submit and reset a form on success using htmx: <form hx-post="/admin/candidates"            hx-target="#candidates_add_form"            hx-swap="beforebegin"            hx-on::after-request=" if(event.detail.successful) this.reset()"   > This assumes the last row is the add form, and places the newly added item directly above it.