|
Function used to set the number of options associated with a given SELECT object.
JSV_setSelectLength(selectObj [, selectLength])
n/a
n/a
The setSelectLength function uses the following arguments.
Argument | Description |
selectObj | The SELECT object. |
selectLength | Optional. The desired length of, or number of options associated with, the SELECT object. Default value is 1. |
n/a
n/a
The following lines of code
<FORM ACTION="setSelectLength.html" NAME="SelectTest" ID="SelectTest" onSubmit="return false;">
<SELECT NAME="ChangeSelect" ID="ChangeSelect" SIZE="1">
<OPTION VALUE="1" SELECTED>One</OPTION>
<OPTION VALUE="2">Two</OPTION>
<OPTION VALUE="3">Three</OPTION>
<OPTION VALUE="4">Four</OPTION>
<OPTION VALUE="5">Five</OPTION>
<OPTION VALUE="6">Six</OPTION>
</SELECT>
<INPUT TYPE="button"
NAME="btnTest"
VALUE="Change SELECT Length to 3"
CLASS="jsvButtons"
onClick="performTest(this.form);">
</FORM>
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.