JavaScript Select Object
The JavaScript Select Object is a property of the form object. The Option object(s) appear inside it as in the following code:
<SELECT NAME="state" SIZE=0>
<OPTION VALUE="0">
<OPTION VALUE="1">AL
<OPTION VALUE="2">AK
<OPTION VALUE="3">AR
</SELECT>
It looks like:
Properties
- form - The form that contains the selection list.
- length - The number of elements contained in the options array.
- name - The name of the selection list.
- options - An array each of which identifies an options that may be selected in the list.
- selectedIndex - Specifies the current selected option within the select list
- type - Type is "select".
Methods
- blur() - Removes the input focus from the selection list.
- focus() - Gives the input focus to the selection list.
Events
|
|