Design comparison
Solution retrospective
The only problem that I had, and still haven't solved, was to pass the value of the clicked button over to the thank you page. The problem I had was that I wasn't sure when the page was created so I had difficulty finding the element with JQuery. I tried logging the confirmation page request, to see if it would be in the request body. Will probably revisit the exercise once I find out how.
Community feedback
- @GowsalayadeviPosted over 2 years ago
Hi Vernon, I couldn't view your code on GitHub. however, you could use event. target method to get the value of the rating and assign it to the element on the second page before you call the show button.
Thanks, Gowsalya
0@VernonDodoPosted over 2 years ago@Gowsalayadevi Yeah, sorry about that; the code is actually under the master branch. I actually tried that but then got an error message saying that a document has to be present. Can you have a look at it and maybe advise me at which point I can target that element to find its value? I've tried it in the POST route for the thank you page, before I render it.
Thank you.
0@VernonDodoPosted over 2 years ago@Gowsalayadevi Yeah, sorry about that; the code is actually under the master branch. I actually tried that but then got an error message saying that a document has to be present. Can you have a look at it and maybe advise me at which point I can target that element to find its value? I've tried it in the POST route for the thank you page, before I render it.
Thank you.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord