--- includeMockServer: true title: "Linked Selects" description: Update select options via another select icon: "icon-[mdi--form-dropdown]" ---
## Basic usage On the client, set the first select to request new options whenever its value changes. ```html Loading... ``` - [`hx-get`](/reference/attributes/hx-get) requests `/models` with the current `make` value as a query parameter. - [`hx-target`](/reference/attributes/hx-target)=`"#models"` swaps the response into the second select. - [`hx-indicator`](/reference/attributes/hx-indicator)=`"#models-indicator"` shows a loading message while the request is in flight. - No [`hx-trigger`](/reference/attributes/hx-trigger) is needed: htmx defaults to `change` for `