Search DaTutorials:  
HOME
DHTML Reference
Introduction
Reference

VALUE Attribute | value Property


Sets or retrieves the value of a list item.

Syntax

HTML<LI VALUE = sValue... >
ScriptingLI.value [ = sValue ]

Possible Values

sValueInteger that specifies or receives the value of the item.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see>About Dynamic Properties.

Remarks

In an ordered list, the value is the number that precedes the list item. Changing the value will change the visual numbering of all following list items. In an unordered list, the value is initially zero. Changing the value has no visual effect on the item.

Example

This example sets each line item's value to an integer string.

<OL>
<LI VALUE="1">One
<LI VALUE="2">Two
<LI VALUE="3">Three
</OL>

Standards Information

property is deprecated in HTML Non-Microsoft link and defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

LI

     Loans | Mobile Phone | Mortgages | Car Loan | Personal Loans
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp