Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • @Ben-Ricketts

    Submitted

    I could not figure out how to integrate into my code to collect the email input value using (localstorage) and then change the text content on the success page. if anyone could give me a solution for that to help me understand that more that would be awesome

    Jayslen 220

    @Jayslen

    Posted

    Try to do this in the eventListener function of the button localStorage.setItem('user-email', JSON.stringify(inputValue)) with this line the email would save into the local storage in the inputValue you gonna put the value of the input element. And for read the data in the localStorage you could do this: const email : JSON.parse(localStorage.getItem('user-email')) So the email const woul have the email and then in the paragrah that is in the succes page you could change the text with textContent and put the email.

    I hope this help you if not you could tell me your discord and i can help you

    Marked as helpful

    0