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
Guido Famula• 150
@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