Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

interactive-rating-component-main

@LeonardoSchuquel

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I managed to do the main but I have no idea how to solve this responsiveness error

Community feedback

Adriano 34,090

@AdrianoEscarabote

Posted

Hi Leonardo Schuquel, 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 button work only when the user selects a number do this:

ButtonSelect.forEach((ButtonSelect) =>{
    ButtonSelect.addEventListener("click", () =>{
        Note.innerHTML = ButtonSelect.innerHTML
        Button.addEventListener("click", () =>{
           Thanks.classList.remove("hidden")
           Container.classList.add("hidden")
        })
    })
})

The rest is great!

I hope it helps... 👍

Marked as helpful

0

@LeonardoSchuquel

Posted

@AdrianoEscarabote Thanks, I hadn't really thought about this path

1
Adriano 34,090

@AdrianoEscarabote

Posted

@LeonardoSchuquel happy coding!!

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

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