Getting Started
Core Concepts
Control
Interactivity
Performance
Pushing Data
HTMX Extensions
Miscellaneous
Configuration
Trigger Children
The 'trigger-children' extension allows you to trigger an event on all children and siblings of an element.
This is useful for things such as letting a child element (such as a button) inside a form know the form was submitted
In this example: The trigger-children extension will trigger hx-before-request and hx-after-request on all children of the form when the form is submitted, and the button reacts to that by showing a loading state.