--- includeMockServer: true title: "Bulk Actions" description: Perform actions on multiple records icon: "icon-[mdi--checkbox-multiple-marked]" ---
## How it works Wrap a table in a ` ``` - [`hx-target`](/reference/attributes/hx-target)=`"this"` and [`hx-swap`](/reference/attributes/hx-swap)=`"outerHTML"` on the form mean every action replaces the entire form with the server's response. - Each action button uses [`hx-post`](/reference/attributes/hx-post) to a different endpoint. Only checked `name="selected"` values are submitted. - Use [`hx-target:inherited`](/docs#attribute-inheritance) to avoid repeating target declarations on each action button. ### Clickable rows Make the whole row a click target so users don't have to aim for the small checkbox: ```html