I have a program where he creates cookies with the data that the user typed in the <input>
fields. This all through AJAX. So far no problems, but in this file I make the request, it returns me the data of the cookies created. What I want is to get this data and put it in two other <input>
fields.
An example to clarify further:
-
Two fields
<input>
name and email; -
I am sending this data to another file that creates cookies with this data;
-
And two other fields that I want to auto-populate with this returned cookies;
Only when returned, they come together, is there any array
to get this information one at a time?
One detail, I use pure JavaScript, no jQuery.