@elaineleung
Posted
Hi Teano, I actually saw at least two other similar comments for this challenge, and on one of them I even posted my old code, but I think it might be better to just show how it works using CodePen: https://codepen.io/elaineleung/pen/xxWzZPv
There are many ways to go about it, but this is what I think is the most straightforward. You basically put a value in the button when you write the HTML, and then in the JS, you pull that value from the element using an event listener, then you store that value and use it for the message in the Thank You page. See whether the CodePen helps you out, or you can also check out my solution to the challenge, which is a bit more complex since I'm using radio buttons, but the JS is fairly similar.
Good luck!