Retaining the textbox values even after refresh

前端 未结 3 854
一向
一向 2021-01-26 10:25

I want to Retain the textbox values even after Refresh of page rather it is successfully submitted.

Using cookies or using php sessions

Here is the code Below :

3条回答
  •  粉色の甜心
    2021-01-26 11:16

    You could solve this using jQuery and local storage.

    This has been answered here: Saving form data to local storage and show it on refresh

    It basically runs a load/save command when the page changes.

提交回复
热议问题