Design comparison
SolutionDesign
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hi shiva kumar, how are you? I really liked the result of your project, but I have some tips that I think you will enjoy:
To make the
submit
button work only when the user selects a number, we can do this:btn.forEach((e) => { e.addEventListener('click', () => { rating.innerHTML = e.innerHTML submit.addEventListener('click', () => { container1.style.display = 'none' container2.style.display = 'block' }) }) })
The rest is great!
I hope it helps... 👍
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