What's new? | Help | Directory | Sign in
Google
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-html, is-html-attribute
InputCheckedAttribute  
The input checked attribute represents the checked state of a checkbox form control.

You are here: Home > HTML Reference > Elements > <input> element > checked attribute

Usage

In IE, if you want to set the "checked" attribute via Javascript, you need to set the "defaultChecked" attribute to true or false, since IE ignores Javascript changes to the "checked" attribute.

Values

Elements

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
input.checked reflects <input> Y Y Y Y Y Y Y Y
input.checked reflects <input checked> N N N Y Y Y Y Y

Further reading


Sign in to add a comment