@AdrianoEscarabote
Posted
Hi naomichoe, 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 submit button work only when the user selects a number, we can do this:
ratings.forEach((rate) => {
rate.addEventListener("click", () => {
submittedRating.innerHTML = rate.innerHTML;
submitButton.addEventListener("click", () => {
ratingContainer.style.display = "none";
thankYouContainer.classList.remove("hidden");
})
})
})
The rest is great!
I hope it helps... π
Marked as helpful