Submitted almost 2 years ago
Interactive rating component, using HTML, CSS and JS
@araujoleo
Design comparison
SolutionDesign
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hello Leonardo Araujo, how are you? 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 make some changes:
rates.forEach((rate) => { rate.addEventListener("click", () => { rating.innerHTML = rate.innerHTML btnSubmit.addEventListener('click', () => { thankyouContainer.classList.remove("hidden") mainContainer.style.display = "none" }) }) })
The remainder is excellent.
I hope it's useful. 👍
Marked as helpful0
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