Interactive Rating Component using HTML5, CSS and JS
Design comparison
Community feedback
- Account deleted
Hello Gustavs , you did good with this rating component : )
I checked your solution and I would like to notice the following. If the user does not click any rate button and click on the submit button the thank-you modal shows itself anyway and an undefined message appears on the second modal.
I believe this could be fixed simply by testing for an empty selection before submitting or disabling the submit button at first an enabling it after the user clicks any rate button.
Best wishes and see you around : )
Marked as helpful0@GFJankavsPosted over 2 years ago@alexcumplido Thanks for the tip! Forgot to check this particular case as I got too focused on design delivery.
0Account deleted@GFJankavs hey! Works perfect now : ) Glad to help, best wishes!
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