Discussion

Discussion

How can I make a multi-line field required is any radio buttons are selected No?

I have a section of Yes, No, N/A questions (class= preop). I want the multi-line Comment field (class= comment) to become required if any on the questions are checked No. I have the following script I found on LF Answers and modified, but it works when one questions is marked No and then removes the required field whenever another question is marked Yes or N/A. In addition, it adds an asterisk every time No is selected which when more than one No is selected looks weird. Can anyone help me properly modify this script? I am new to JavaScript.