polite-oil-80202
10/18/2022, 3:20 PMhtml
<button hx-get="/someurl">Replace name</button>
<form hx-put="/somemethod" hx-target="#the-target">
<div id="my-input">
<input type="text" name="name" value="john">
</div>
<button type="submit">submit</button>
</form>
If I click on submit without changing anything everything works fine.
I I click Replace name, the input is replaced with this
html
<input type="text" name="name" value="jane">
Then if I click on submit nothing happens.
How would you troubleshoot what is happening ?