Hx-get attribute
The hx-get attribute configures HTMX to issue an HTTP GET request to a specified URL when its element is triggered.
Django in Action
hx-get is an HTMX attribute that initiates an HTTP GET request when its attached HTML element is interacted with.
- How it is used
- Drives partial-page updates for lazy loading, live search, infinite scroll, and click-to-edit interactions.
- How deep it goes
- Explains request triggers, target replacement, Django partial views, and HTMX-aware full-page fallback behavior.
- Examples
- Demonstrates promoter lazy loading, musician search with infinite scroll, and inline venue-room editing.
- What you can do after
- Apply it via HTMX and Django views to fetch HTML partials and update targeted page regions without full reloads.
Quarkus in Action
The hx-get attribute configures HTMX to submit an HTTP GET request to a specified endpoint.
- How it is used
- Updates a reservation page’s available-cars table without replacing the whole page.
- How deep it goes
- Shows form and load-triggered GET requests, included parameters, and response targeting; stops short of HTMX internals.
- Examples
- Uses date inputs to request available cars and a container that refreshes on load or after a reservation.
- What you can do after
- Apply it via HTMX to request rendered HTML and update a chosen page element.
Related concepts
- uriconfigures · A URI (Uniform Resource Identifier) is a standardized character sequence that identifies an abstract or physical resource.
- HTMX attributekind of · An HTMX attribute is a declarative HTML attribute that specifies client-side HTTP interactions, events, targets, or updates handled by HTMX.
- HTTP GETuses · HTTP GET is a request method for retrieving a representation of a resource identified by the request target, without requesting a state change.
- HTMXused by · HTMX is a JavaScript library that enables HTML attributes to initiate HTTP interactions, handle events, and update portions of a page.
- click-to-editused by · Click-to-edit is an inline-editing interaction pattern in which displayed data changes into an editable form after the user clicks it or a control.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

