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-page-using-vanilla js

@Osauyi

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


feedback appreciated. working on the JavaScript code was.......very hard, the part of marking the buttons interactive was on another level, couldn't find the answer for days and there was many many WET codes. ( document.querySelector(...) is null). i always got this error when moving to the next page, and its still there i just chose to ignore it. please if there another method of writing the rating button js code let me know.

Thanks

Community feedback

Bhushan 150

@lurnfx

Posted

Hi buddy nice one your solution is great you can use forEach method for loop-over buttons clickedbutton.forEach(function (rate){ rate.addEventListener("click", () => { //Your code for display code to next page }) });

1

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