Hello Sebastian, You did excellent work on your rating component, however, it would be best if you validated that a button has been clicked before displaying the thank you message. I added a code below to help you with that
submitButton.addEventListener("click", () => {
if (/* check if user has click on a rating*/ ){
secondCard.classList.remove("hidden");
firstCard.style.display = "none";
} else {
// prompt user to click on a rating
}
});
Marked as helpful
@SebastianLaka
Posted
@Errorman2003 Hi thank you for your feedback i see what you mean. As Godwin said about validation. I think that it's good idea.