Web host - 590 Part III . Document Objects Reference Properties
590 Part III . Document Objects Reference Properties Methods Event Handlers form options[i].add() onChange length item() multiple namedItem() name options[i].remove() options selectedIndex size type value See text input object (Chapter 25). Syntax Accessing SELECT element object properties: (All) [window.]document.formName.selectName.property | method([parameters]) (All) [window.]document.formName.elements[index].property | method([parameters]) (All) [window.]document.forms[index].selectName.property | method([parameters]) (All) [window.]document.forms[ formName ].selectName.property | method([parameters]) (All) [window.]document.forms[ formName ].elements[index].property | method([parameters]) (IE4+) [window.]document.all.elemID.property | method([parameters]) (IE5+/NN6) [window.]document.getElementById( elemID ).property | method([parameters]) About this object SELECT element objects are perhaps the most visually interesting user interface elements among the standard built-in objects. In one format, they appear on the page as pop-up lists; in another format, they appear as scrolling list boxes. Pop-up lists, in particular, offer efficient use of page real estate for presenting a list of choices for the user. Moreover, only the choice selected by the user shows on the page, minimizing the clutter of unneeded verbiage. Compared with other JavaScript objects, SELECT objects are difficult to script mostly because of the complexity of data that goes into a list of items. What the user sees as a SELECT element on the page consists of both that element and OPTION elements that contain the actual choices from which the user makes a selection. Some properties that are of value to scripters belong to the SELECT object, while others belong to the nested OPTION objects. For example, you can extract the number (index) of the currently selected option in the list a property SELECT
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.