eyalseg

Using local storage in order to retrive data

Discussion created by eyalseg on Feb 5, 2018

Hi

Is there a way to save after sometime (something like minute after the user started)

 

using local storage functions:

function loadSettings() {

NWF$('.id').val(localStorage.id);

}

function saveSettings() {

localStorage.id = NWF$('.id input').val();

}

 

And retriving the data after clicking button  that trigger the function "loadSettings".

 

 

But:

1. make it specific to each form (because a lot of forms uses "id")

2. make it generic - with function that will get all the input in the page and save them

 

Would highly appriciate your help

Eyal

Outcomes