Javascript Reference
Categories: LI

javascript LI value

@July 5, 2008, 2:03 p.m.
value Firefox/Netscape/NN 6 IE 4 Chrome/Safari/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.

it didnt work for me...
datshay - 2010-05-31

Powered by Linode.