# Select

![Bootstrap Select](https://2107043207-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGjmp6bcmNAsAEW4hIY%2F-MK52io3TPvf1IXcxDqt%2F-MK555F36JBq3BNbSWLn%2Fimage.png?alt=media\&token=da3ec931-cf24-4b35-b924-0574863b6c4e)

Bootstrap's [Select](https://getbootstrap.com/docs/4.2/components/forms/#select-menu) enhances the basic HTML select drop down.

![](https://2107043207-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGjmp6bcmNAsAEW4hIY%2F-MK52io3TPvf1IXcxDqt%2F-MK56Ir5t8hXVA-KlXbj%2Fimage.png?alt=media\&token=a8e567f2-2dff-41d5-9f7d-b360c4460943)

Use the `bsSelect` class to create an instance of Bootstrap's select component inside WireBootstrap.

```javascript
const mySelect = new wire.bsSelect();
```

Render the component using an HTML `select` element.

```javascript
<select id="select"></select>
...
mySelect.render("#select",{
    ...
});
```

### Web Component

Use the `wire-bs-select` web component to render the component using [Web Components](https://docs.wirebootstrap.com/bootstrap/web-components).

```html
<wire-bs-select wr-config=""></wire-bs-select>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wirebootstrap.com/bootstrap/select.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
