# 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](https://developers.getgeoflow.com/geoflow-docs/feature/form/auto-populate-select-fields).

### 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)
```
