target

const val target: String(source)

"hx-target" specifies the target element to be swapped.

<div>
<div id="response-div"></div>
<button hx-post="/register" hx-target="#response-div" hx-swap="beforeend">
Register!
</button>
</div>

htmx.org/attributes/hx-target/