JavaScript
A5.SelectsetValue Method
Syntax
A5.Select.setValue(value[,executeSelect])
Arguments
- valuearraystring
The value(s) to use in the SELECT. Pass in an array for values for multiple selections.
- executeChangeboolean
Whether or not to execute the change event.
Description
Set the value of the SELECT.
Example
// assume sObj is a pointer to an instance of the A5.Select class // assume the current options are "Red", "Blue" and "Green" sObj.allowMissing = false; sObj.setValue('Red'); // value will be "Red" sObj.setValue('Yellow'); // value will be "" sObj.allowMissing = true; sObj.setValue('Orange'); // value will be "Orange"