EPISODE · Jun 20, 2024 · 19 MIN
Large table pattern using htmx
from hx-pod · host Lazarus
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.
Embed this episode
NOW PLAYING
Large table pattern using htmx
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
No similar podcasts found.