You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MAKE THE DATA FROM THE LOCAL STORAGE FILL THE FORM INPUTS BY DEFAULT.
whenever the user loads the page, if there is any data relative to the form inputs in the local storage, they should fill in the form inputs.
To solve this issue, proceed as follow.
Remove the declaration of the email,fullname, and message from the addFormData function and insert them outside so that they can be accessible in the global scope.
let email = document.getElementById("email");
let fullName = document.getElementById("fullname");
let message = document.getElementById("message");
Check if there is any data relative to the form inputs inside the local storage and insert them automatically in the form inputs.
MAKE THE DATA FROM THE LOCAL STORAGE FILL THE FORM INPUTS BY DEFAULT.
whenever the user loads the page, if there is any data relative to the form inputs in the local storage, they should fill in the form inputs.
To solve this issue, proceed as follow.
email,
fullname,
andmessage
from theaddFormData
function and insert them outside so that they can be accessible in the global scope.addFormData
functionThe text was updated successfully, but these errors were encountered: