i only use vanila javascript,html and css preprocessor (sass)
Design comparison
Solution retrospective
i just wanna know from you guys about this project.
how do you set the counter of user`s rating input? my first idea is using an empty array and then export the value from index.html to another page of thank-you(thanks.html in my case). but i getting stuck when i try to export the value. javascript showing an error that there is an null value (submit button) on index.html. seems like javascript guess all of instruction of index.html is getting included to thanks.html so its showing an error.
finnaly i using localstorage,an alhamdulillah its works like i expected
Community feedback
- @calebQWEBPosted over 2 years ago
Hi Rio
great job on the layout, first off you could store the user's rating input in an empty array or an empty string, in my case I used an empty string and then set the length of that string to always equal 1 if it doesn't equal 1 I used the .slice() method to remove the first item in the string.
and then secondly instead of having a separate file for the thank-you section, you could have it in a separate container in your index.html and set it to display : none and then set an event listener on the submit button to display the container and hide the rating section whenever you click it.
I hope this was helpful Happy Coding
Marked as helpful2@rio-rifaldiPosted over 2 years ago@calebQWEB
hi caleb
wow amazing solution.. thank you for fast respon answering my little question.i very respect that.its very helpful.
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