@bhatsahil13579
Posted
Nice job cryptososso π
Here are some feedbacks
Your all buttons are having borders you can remove them simply by adding ( border : none)
In Js Part :
i see that you have added event Listener for each button separately but you can do it by only adding event Listener one time through ForEach method like this :
btn.forEach(elements =>
elements.addEventListener("click", () => {
}
})
but make sure you have selected that element by querySelectorAll
and also there is no need for score1 , score2 like that you can simply do it like this :
btn.forEach(elements => {``
elements.addEventListener("click", () => {``
rateScore.textContent = elements.textContent
}
})
and i can click submit button without submitting rating to stop that add disabled attribute to your all rating buttons and then in js you can remove that attribute if the click is true like this
btn.forEach(elements => {
elements.addEventListener("click", (task) => {
rateScore.textContent = elements.textContent
if (task) {
btn.removeAttribute("disabled" )
}
})
}
})
hope it will help you ππ
Marked as helpful
@cryptososso
Posted
@bhatsahil13579 Thank you for the feedback very helpful