getOptionIndex

jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

This function returns the index of the SELECT list option whose value or text matches the given parameter, with priority givent to value. Returns -1 if no matching option is found. “Hidden” options are taken into account.

Signature

getOptionIndex(value)

Parameters

( value ) The option value or text to find

Example

spec['SelectList'].getOptionIndex('Testing');

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.