Javascript for checkboxes and text field
Hey there,
I haven't dabbled much into validation coding, so any help would be appreciated!
I am working on a form that has a set of A and B questions. A and B are yes/no checkboxes (not radio buttons.) Following those, there is a text field asking 'if yes to a or b, explain.'
So far, I have it coded to mark the text field required when either 'yes' is checked for A or B. However, if I go through and check both boxes 'yes' and then uncheck one to change to 'no', the field becomes not required.
I have tried to fix this problem myself, and have searched around for another problem like this one but am not really sure what I am looking for haha.
If someone knows, please reply! Thanks so much!
