HTML DOM Select Object Instance Tutorial

Source: Internet
Author: User
Tags html form

Select Object
The Selection object is an HTML form in a Drop-down list.

For each individual the HTML <select> tag of one form, the creation of a select object.

You can access the contents of the object's selection search [] array form, or by using document.getElementById ().

IE Browser: Internet Explorer, female: Firefox, Oxygen: Opera House, World Wide Web Consortium (Internet standard).

Select a collection of objects
The set description is the FÖW3C
option [] Returns all options for an array in the Drop-down List 4 1 9 is

Property The
Description IE F OConsortium
Disabled Sets or returns whether the Drop-down list should be disabled 5 1 9 Yes
Form Returns a form of reference 4 1 9 Yes
Id The Drop-down list of the returned IDs 4 1 9 Yes
Length return length 4 1 9 Yes
Multiple Returns whether multiple items can be selected 4 1 9 Yes
Name return name 4 1 9 Yes
SelectedIndex Returns the current option index value 4 1 9 Yes
Size return size 4 1 9 Yes
TabIndex Sets or returns the tab order for a dropdown list 5 1 9 Yes
Type Returns the type of form element a dropdown list is 4 1 9 Yes

Standard Properties

Property The
Description IE F OConsortium
ClassName Set or return an integral part of a class attribute 5 1 9 Yes
Dir Sets or returns the text of a direction 5 1 9 Yes
Lang Sets or returns an integral part of a language code 5 1 9 Yes
Title Set or return a component of the consulting title 5 1 9 Yes

Select Object Methods

method The
Description IE F OConsortium
Add () Add an option to the Drop-down list 4 1 9 Yes
Blur () Remove the focus from the Drop-down list 4 1 9 Yes
Focus () Focus on the Drop-down list 4 1 9 Yes
Remove () Remove an option from the Drop-down list 4 1 9 Yes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.