Adriano• 34,090
@AdrianoEscarabote
Posted
Hi Olayinka Oluwafemi, 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:
numberBtn.forEach(btn =>{
btn.addEventListener('click', () =>{
console.log(btn.innerText);
selected.innerText = btn.innerText
submitBtn.onclick = () =>{
thanks.classList.toggle('active');
box.classList.toggle('active');
}
})
})
The rest is great!
I hope it helps... 👍
0