A
A
Alexander AS2019-08-31 21:05:01
JavaScript
Alexander AS, 2019-08-31 21:05:01

Modal window with a form, how to collect data in the form and send it as a post?

How to perform two form submissions on one click by doing the following?
Form + modal window

(When you click on the "Get a consultation" button, a modal window opens.)
When sending data, the question that the user wrote in the input and the data from the form are sent.

All data must be written to the object and sent in JSON format
Ajax script

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question