L
L
Larisa .•º2017-08-19 23:40:46
Django
Larisa .•º, 2017-08-19 23:40:46

Save form state?

There are tabs on the page, on each form tab, with many fields. How can I save the entered values ​​on forms when switching between tabs?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Dergachov, 2017-08-19
@vanillathunder

You can store form data in localstorage.

localStorage.setItem(key, value); //записать значение поля сюда

W
Weridy, 2017-08-19
@Weridy

As a friend noted, you can use local storage, you can also use cookies. There are a couple of options, choose what you like

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question