Home Cooker Classes Others Rice CookerGX
Classes  >  select  >  Value
select class : Value getter

Description

Gets a value of the value attribute of the selected item.

Syntax

selectInstance.Value

Arguments

None

Return value

ClassDescription
stringA value of the value attribute of the selected item.

Sample code

// anySelect is an instance of select class.

string attributeValue= anySelect.Value;

Notes

If multiple items have already been selected, the value of the value attribute of the selected item with the smallest index is returned.

If no item is selected, an empty string is returned.

Links for reference

Copyright © Rice All rights reserved.