简体   繁体   中英

How can I preserve the values when the page is loaded first time on the edit link click

I have one page on which I am showing grid model with edit links in MVC. Now on click of that edit link we are getting redirected to other page. On that page I have 4 buttons, on the click on that buttons grid model is shown.

how I can preserve the values when the page is first time loaded when we click on the edit link in jquery?

You can use localstorage to save your formData and then when your next page loads you can use the data from localstorage. https://developer.mozilla.org/en/docs/Web/API/Window/localStorage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM