This is the gohtml code containing the checkbox and the input fields with id="number"
How do I ensure with JavaScript that when the checkbox is clicked, all the input fields are automatically entered with the number 0?
Thanks in advance!
This is the gohtml code containing the checkbox and the input fields with id="number"
How do I ensure with JavaScript that when the checkbox is clicked, all the input fields are automatically entered with the number 0?
Thanks in advance!
Copyright © 2021 Jogjafile Inc.
I need more than that, but for answering I am assuming your checkbox has id=chkbox
what we can do is add an event listener to the checkbox
This should do the trick