> For the complete documentation index, see [llms.txt](https://developers.getgeoflow.com/geoflow-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.getgeoflow.com/geoflow-docs/advanced/methods/select.md).

# select

### Description

This method can programmatically populate a \<select> element with \<option> elements based on a specified category. An optional can also be passed, appearing as the first \<option> element. Otherwise, the default placeholder will be used 'Choose an Option'.

The first parameter should be the CSS Selector for the \<select> element (e.g. #chooseCountry), followed by the category of options (e.g. all-countries) you would like to use and lastly, an optional placeholder if you'd like to override the default one (e.g. Choose a Country).

The available categories are specified on this page [here](/geoflow-docs/feature/form/auto-populate-select-fields.md).

### Parameters

```vbnet
elementIdentifier (string), category (string), placeholder (string, optional)
```

### Using This Method

```javascript
geoflow.select('#choose-country', 'all-countries', 'Choose a Country');
```

### Output

```javascript
true (boolean)
```
