Joe-Praise• 180
@Joe-Praise
Posted
You could go around it by
- Writing an "if statement" to confirm if the state of both "Total field" innerHtml are === 0
- If true, target the "reset button" and add CSS style "pointer-events: none" to the button. That should deactivate the button and if you want to change the background-color, you can easily do it within the same scope. also, you should make provision for when it's false(you toggle the CSS style). I'm yet to do mine though, but I hope this helps.🙂
Marked as helpful
0