Trigger form submit with enhance
without clicking submit button
#11125
Answered
by
eltigerchino
DePasqualeOrg
asked this question in
Q&A
-
I need to submit a form using <form use:enhance={handleDeleteProject} bind:this={deleteProjectForm} method="POST" action="?/delete">
<button bind:this={deleteProjectButton} type="submit">Delete</button>
</form> |
Beta Was this translation helpful? Give feedback.
Answered by
eltigerchino
Nov 27, 2023
Replies: 1 comment 1 reply
-
Try deleteProjectForm.requestSubmit() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DePasqualeOrg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try deleteProjectForm.requestSubmit()