Pergunta

What does the javascript (insert name of object here) 'defaultChecked' do?

Foi útil?

Solução

The defaultChecked property returns the default value of the checked attribute.

This property returns true if the checkbox is checked by default, otherwise it returns false.

Quoted from W3Schools.

Outras dicas

Maybe example will help? http://jsfiddle.net/yahavbr/cCpUu/

As you see if the checkbox has the "checked" attribute it will return true otherwise false - note however it's not affected by the "current" checked state of the checkbox.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top