ui.Select.getValue
Returns the currently selected value.
Usage | Returns |
---|
Select.getValue() | String |
Argument | Type | Details |
---|
this: ui.select | ui.Select | The ui.Select instance. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`Select.getValue()` returns the currently selected value as a string from a `ui.Select` instance."],["This method takes one argument, the `ui.Select` instance itself, and is used to retrieve the user's selection."]]],["The `Select.getValue()` method retrieves the currently selected value from a `ui.Select` instance. It takes the `ui.Select` instance as an argument (referred to as `this`) and returns the selected value as a String. No other arguments are required. The method provides a way to programmatically access the user's choice from the select element.\n"]]