Sets or gets whether a switch is on or off.
Setting the checked property to true toggles the switch to the on position. Setting it to false toggles the switch to the off position.
checked
true
false
Getting the checked property returns whether the switch is on or off.