@sjohnston82
Posted
The styling looks great! One thing I noticed was you are not passing the input email to the success page.
This can easily be done by setting the form data into local storage and then retrieving it on the success page:
let userEmail = document.getElementById("emailAddress").value;
localStorage.setItem("email", userEmail);
and in a script tag on the success page:
const email = localStorage.getItem("email");
const spanElement = document.getElementsByClassName("user-email-success")[0];
spanElement.textContent = email;
Marked as helpful