@AdrianoEscarabote
Posted
Hi Jonathan Samael, 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:
valuesSelected.forEach((value) => {
value.addEventListener("click", () => {
sendChoice.innerHTML = value.innerHTML
btnSubmit.addEventListener("click", () => {
firstState.classList.add("hidden")
secondState.classList.remove("hidden")
})
})
})
The rest is great!
I hope it helps... π
Marked as helpful
@JonathanSamael
Posted
@AdrianoEscarabote Wow!! That's a great ideia. Thanks for your comment!