0
edits
Changes
no edit summary
You can use a JavaScript function to modify the options available in a pull-down box on the page.
The following example adds a new blank selection at the top of the ''starthour'' field at '''Level 2''':
<pre>
}
</pre>
The options available are:
:''document.forms[0].starthour.add(new Option('''''Display text, Store value, defaultSelected, selected'''''), document.forms[0].starthour.options[0]) ''
[[Category:JavaScript]]