Adriano• 33,970
@AdrianoEscarabote
Posted
Hello Jared, how are you? I truly loved your project's outcome, however I have some advice that I hope you'll find useful:
To make the submit button work only when the user selects a number, we can make some changes:
rateBtn.forEach((rate) => {
rate.addEventListener("click", () => {
rating.innerHTML = rate.innerHTML
submitBtn.addEventListener("click", () => {
thankContain.classList.replace('hidden','fade-in')
mainContain.style.display = "none";
})
})
} )
The remainder is excellent.
I hope it's useful. 👍
Marked as helpful
0