July 1998
Intermediate to advanced
1456 pages
65h 5m
English
defaultSelected — NN 2 IE 3 DOM 1
Read/Write
Whether element has the SELECTED attribute set in
the tag. You can compare the current selected
property against defaultSelected to see whether
the state of the select control has changed since the document
loaded. Changing this property does not affect the current
selected status.
var listItem = document.forms[0].selector.options[2]
if (listItem.selected != listItem.defaultSelected) {
process for changed state
}Boolean value: true | false.
Determined by HTML tag attribute.
Read now
Unlock full access