Episode Details

Back to Episodes

Large table pattern using htmx

Season 3 Published 1 year, 8 months ago
Description

Mentioned, how to submit and reset a form on success using htmx:

           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.

Listen Now

Love PodBriefly?

If you like Podbriefly.com, please consider donating to support the ongoing development.

Support Us