I am building an admin system to fill up details of particulars such as name, dob etc.
The function that I am building is to enable the user to fill up the input box by filling up the box. I put a checkbox that allow the user to automatically input “N/A” into multiple boxes when the checkbox is checked.
I am able to make the checkbox work but when there is some changes to the input box, the checkbox function is nullified. For example: when the checkbox is checked, “N/A” appeared in multiple checkbox as I wanted. However, when I replace the word “N/A” with other text/numbers, the checkbox does not work anymore. It seems like the checkbox only can perform one time only.
How do make the checkbox work anytime I checked/unchecked it and it is not just a one time function/condition?
Thank you in advance