A
A
a2020-04-30 03:35:07
JavaScript
a, 2020-04-30 03:35:07

How to submit a form without a submit button?

How to submit with jQuery an existing form like:

<form name="form" method="post" action="url" accept-charset="UTF-8">
    <input type="hidden" name="text"></input>
</form>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2020-04-30
@loonny

Use the serialize() function and post the data with $.post()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question