javascript LI value
| value | NN 6 IE 4 DOM 1 |
|
|
Read/Write |
|
Indicates the number of the item within an ordered list. This property applies to an li element only when it is nested inside an ol element, and only when the corresponding attribute is explicitly assigned in the HTML code. The default value for unadjusted numbering is always 0 in IE and -1 in Netscape 6. If you set the value property of one item in the list, the following items continue the sequence from the new value. Modifying the property value does not adjust the rendered numbering. |
|
| Example | |
if (document.getElementById("step5").value > 0) {
...
}
|
|
| Value | |
|
Integer. |
|
| Default | |
|
0 or -1. |
|
Previous: javascript LINK Description
Next: javascript LI type
- #12010-05-31[Quote]it didnt work for me...
1176,Nickname,Homepage or email,Comments here,Add comment
