T
T
tokyo_ghoul42021-06-15 16:49:42
JavaScript
tokyo_ghoul4, 2021-06-15 16:49:42

How to get input data?

I have rendered data from input(html) via javascript. How can I send this data to the server?

I had the option to send by mail. But I don't think it's the best.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Aleksandr Kritskii, 2021-06-15
@tokyo_ghoul4

It is possible to send them with Fetch using POST

D
Denis Sokolov, 2021-06-15
@Denis147258369

document.querySelector('.класс').value

K
Kentavr16, 2021-06-15
@Kentavr16

So, for this you need a server api that will accept and process requests. Api is no different from the usual address http/adress/api/something else. The server will process the sent data and return a response. If you yourself want to create such a server on node, for example, get acquainted with the express framework. If it's not clear, please clarify. Or google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question