Adding validations to see if radio button is not selected

前端 未结 8 1066
误落风尘
误落风尘 2021-01-07 06:30

I have the following code:

 
  • 1. question 1
  • Strongly
  • 8条回答
    •  不思量自难忘°
      2021-01-07 06:56

      You should use logical operator && for your condition

      if ( (thisfrm.question3[0].checked == false) && 
           (thisfrm.question3[1].checked == false) && 
           (thisfrm.question3[2].checked == false) && 
           (thisfrm.question3[3].checked == false) && 
           (thisfrm.question3[4].checked == false) )
      

    提交回复
    热议问题