79344017

Date: 2025-01-09 21:03:10
Score: 1
Natty:
Report link

Use hx-include - https://htmx.org/attributes/hx-include/.

<div>
  <form id="myform">
    <input type="text" name="field1"/>
  </form>
</div>
<div>
  <button hx-post="" hx-include="#myform"></button>
</div>

This will submit all the child-inputs in the myform tag.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: abedurftig