Is it possible to swap input value with htmx?
12:20 14 Jan 2025

If we have an input element like:


I want to use htmx to update the input value when the value of another input element changes. This is what's in my mind:


The problem is that htmx docs don't list value as a possible option for hx-swap.

Is there a recommended way to achieve this with htmx or we need to resort to JavaScript for that?

javascript html htmx