Interactive Rating Component

Solution retrospective
Working but atm there is no check that disables the submit button until a rating is selected.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @covstar
In your javascript, set a condition if the buttons are not already clicked not to submit. E.g; if using jquery $('#submitBtn').click(function(){
Let btn1 = $('#btn1').text(1);
if (btn1 == "") { return false; }
})
What it means, is that if the btn1 is not clicked, the submit button will not work.
Let me know if this was helpful.
- @gvnee
Make your repository public.
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