In EHTML you can just wrap with e-form and add you hidden input fields or <e-form-dynamic-value> to bind values, it will be more readable.
<e-form-dynamic-value>