Created
December 13, 2023 23:40
-
-
Save ghomem/4425bb611910534ba37c1bc97bcba922 to your computer and use it in GitHub Desktop.
htmx div replacing form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- this form includes the HTMX hx-post and hx-target elements --> | |
<form hx-post="/render" hx-target="#the-image" autocomplete="off"> | |
<! ... div with code for the input fields here --> | |
<!-- Buttons --> | |
<div class="grid"> | |
<input type="submit" value="Generate" /> | |
<! ... code for the other buttons here --> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment