Home Cooker Classes Others Rice CookerGX
Classes  >  select  >  Multiple(bool)
select class : Multiple(bool) setter

Description

Sets a value indicating whether this select box can select multiple items.

Syntax

selectInstance.Multiple = multipleSelectable

Arguments

ClassNameDescription
boolmultipleSelectableA value indicating whether this select box can select multiple items.

Return value

None

Sample code

// anySelect is an instance of select class.

anySelect.Multiple = true;

Notes

If you assign true, the multiple="" is written to the tag. If you assign false, the multiple attribute is removed from the tag.

If you assign false when multiple selections have already been made, the last item in the selected items will be made the selected item.

Links for reference

Copyright © Rice All rights reserved.