Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive Interactive Rating Component With Tailwind CSS & HTML JS

@guidofamula

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


How do I return to the main/home page, if the process of calling the thank you card uses hidden (display:none) class manipulation?

Community feedback

yishak abrham 2,150

@yishak621

Posted

//home btn click event 
 home.addEventListener('click', () => { 
   ratingCard.classList.remove('hidden'); 
   selectedCard.classList.add('hidden'); 
   home.classList.add('hidden'); 
   eachBtns.forEach((btn) => { 
     //when you go back the selection btns are empty 
     btn.classList.remove('btn-active'); 
   }); 
 });

Marked as helpful

1

@guidofamula

Posted

@yishak621 thanks for feedback, I've done edits to my javascript file. with the code below as you suggest.


backHome.addEventListener("click", (() => {
    mainCard
        .classList
        .remove("hidden"),
    thanksCard
        .classList
        .add("hidden")
}));```
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