IT. Expert System.

Java Script

DOM Select Object


DOM Select Object

The Select object represents a dropdown list in an HTML form.

For each <select> tag in an HTML form, a Select object is created.

The Select object can be accessed by searching through the elements[] array of the form, or by using document.getElementById().

Collections

Collection Description
options[] Returns an array of all the options in a dropdown list

Properties

Property Description
disabled Sets or returns whether or not a dropdown list should be disabled
form Returns a reference to the form that contains the dropdown list
length Returns the number of options in a dropdown list
multiple Sets or returns whether or not multiple items can be selected
name Sets or returns the name of a dropdown list
selectedIndex Sets or returns the index of the selected option in a dropdown list
size Sets or returns the number of visible rows in a dropdown list
type Returns the type of form element a dropdown list is

Methods

Method Description
add() Adds an option to a dropdown list
remove() Removes an option from a dropdown list

Standard Properties and Methods

This object also supports the standard properties and methods.

Standard Events

This object also supports the standard events.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 609 / 158692048. Delta: 0.02964 с