Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

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

Document Tags and Contributors

 Contributors to this page: Sheppy, Enn, Marsf, Brettz9, BenoitL, Techrazy, Ptak82, Pmash, Okome, Mgjbot, Dria
 Last updated by: Sheppy,