I have a form and I want the value of each element (say, textarea
) after its change to be saved with a cookie with a name that is consonant with the name of the element, or with an input parameter of the function (for example, saveForm(12)
). How long? Until the browser is closed.
I’ll ask you to implement this with JavaScript through events ( onkeypress
or onchange
or onblur
).
I will be very grateful.