Multiple check box to code
Hi, I am very new to javascript and just use it for basic forms for my business. This is the code that I have. It basically check if a checkbox is checked and then make a text box required. The problem that I have is it needs to check if either or all of 3 check boxes are checked.
if(this.getField("CB1").value=="No") { this.getField("Note_Hand").required=true; } else { this.getField("Note_Hand").required=false; }
I Tried something like this but with no success
if(this.getField("CB1" ,"CB2", "CB3").value=="No") { this.getField("Note_Hand").required=true; } else { this.getField("Note_Hand").required=false; }
even tried
if(this.getField("CB1" or "CB2" or "CB3").value=="No") { this.getField("Note_Hand").required=true; } else { this.getField("Note_Hand").required=false; }
Please can someone help
