@AdrianoEscarabote
Posted
Hi Tushar, 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 a user selects a number, do this:
btn.forEach((btn) => {
btn.addEventListener("click",() => {
rating.innerHTML = btn.innerHTML
button.addEventListener("click",() => {
thanks.style.display = "block"
main.style.display = "none"
})
})
})
The rest is great!
I hope it helps... 👍
Marked as helpful
@Tushar6396
Posted
Hii @AdrianoEscarabote thanks a lot for spending your valuable time while reviewing my code. I really appreciate your efforts and will surely look forward with your suggestions. Thanks once again for your feedback.
@AdrianoEscarabote
Posted
@Tushar6396 happy coding!!
Marked as helpful