If statements for Checkboxes

前端 未结 6 1104
刺人心
刺人心 2021-02-18 23:43

I wanted to know how to write if statements to see if one or another check box is checked or not.

I have two check boxes. I wanted it to check to see if checkbox 1 is c

6条回答
  •  时光说笑
    2021-02-19 00:12

    Your going to use the checkbox1.checked property in your if statement, this returns true or false depending on weather it is checked or not.

提交回复
热议问题