Specifications
Chapter 334
The following example illustrates the settings for an editable select list:
<select name="travelOptions" style="width:250px" editable="true"
editText="other (please specify)">
<option value="plane">plane</option>
<option value="car">car</option>
<option value=""bus">bus</option>
</select>
When you use select lists in your extensions, you can check for the presence and value of the
editable attribute. If no value is present, the select list returns the default value of
false, which
indicates that the select list is not editable.
As with normal (noneditable) select lists, editable select lists have a
selectedIndex property (see
“Objects, properties, and methods of the Dreamweaver DOM” on page 42). This property
returns -1 if the text box is selected.
To read the value of an active editable text box into an extension, read the value of the
editText
property.
editText returns the string that the user entered into the editable text box, the value of
the
editText attribute, or an empty string if no text has been entered and no value has been
specified for
editText.
Dreamweaver adds the following custom attributes for <
select> to control editable pop-up lists:
Note: Editable select lists are available in Dreamweaver MX.
Attribute Name Description Accepted Values
editable Declares that the pop-up list has an
editable text area
Boolean value of true or false
editText Holds or sets text within the editable text
area
A string of any value