Adriano• 34,090
@AdrianoEscarabote
Posted
Hi shiva kumar, 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:
btn.forEach((e) => {
e.addEventListener('click', () => {
rating.innerHTML = e.innerHTML
submit.addEventListener('click', () => {
container1.style.display = 'none'
container2.style.display = 'block'
})
})
})
The rest is great!
I hope it helps... 👍
Marked as helpful
0
shiva kumar• 310
@shivakumar-ui-max
Posted
@AdrianoEscarabote thanks man
1