Skip to content
Advertisement

Keep input value after refresh page

I have a form with input field and this input contain a drop down menu read information from database. If the user enters value and when he arrives to the drop menu he doesn’t find what he wants he go to another page to add this info to the drop down menu and then go to the first page to continue enter the information. How can I keep this information if he goes to another page to add info to drop menu and how can after adding the info to drop menu find this info without refresh and without submit.

This is the first page with the form

JavaScript

This drop menu read from database

JavaScript

Second form in another page

JavaScript

Advertisement

Answer

EDIT: Keep value of more inputs

HTML:

JavaScript

Javascript:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement