Skip to content

addOption

jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

This function appends a new option to the end of a SELECT list.

Signature

addOption(text[,][,])

Parameters

( text ) The display text associated with the option.

( value ) Optional. The value associated with the option. If omitted, value will be the same as text.

( selected ) Optional. A boolean representing whether the new item becomes the currently selected item in the SELECT list.

Example

spec['SelectList'].addOption('New Item', '123456', true);

Clone this wiki locally