Interactive Rating App

Solution retrospective
- what I found difficult when I want to submit the ratings to the thank you section.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @AdrianoEscarabote
Hello Mahfoodh Salem, how are you? Welcome to the community of front-end mentors! I truly loved your project's outcome, however I have some advice that I hope you'll find useful:
To make the submit button work only when the user selects a number, we can do this:
ratingNumber.forEach((rate)=>{ rate.addEventListener('click',()=>{ displayRates.innerText = rate.innerText submit.addEventListener('click',()=>{ thanksCards.style.display = "block" }) }) })
The remainder is excellent.
I hope it's useful. 👍
- @catherineisonline
Look great! To remove so many report issues you can wrap everything in the main tag and refresh the report 😊
Join 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