vals

const val vals: String(source)

"hx-vals" add values to submit with the request (JSON format).

<div hx-get="/example" hx-vals='{"myVal": "My Value"}'>Get Some HTML, Including A Value in the Request</div>

<div hx-get="/example" hx-vals='js:{myVal: calculateValue()}'>Get Some HTML, Including a Dynamic Value from Javascript in the Request</div>

htmx.org/attributes/hx-vals/