S
S
Salim2021-02-20 15:47:52
AJAX
Salim, 2021-02-20 15:47:52

How to create a working form in JS?

How to make it so that after pressing the "send" button, what the user wrote in the input "login" and "password" are written in another div , is it possible to do this using JS or do I need something else.
If you can throw a link to training or examples that would be great. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kuznetsov, 2021-02-20
@saver116

Yes, you can do it with JS.
If you don’t need to process the data (the backend is not used), then simply by pressing the button you get data from the inputs, save (optional) and output where you want.
If you need to process the data, for example, through PHP, then you send it to the server using Ajax, and already output the response where necessary.
Found a similar question: How to get data from input?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question