-
checked
- Type: boolean
- Indicates whether the element is checked or not.
- Use
hasAttribute()
to determine whether this attribute is set instead ofgetAttribute()
. - For buttons, the
type
attribute must be set tocheckbox
orradio
for this attribute to have any effect.