> For the complete documentation index, see [llms.txt](https://mobius-studios.gitbook.io/selectable/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobius-studios.gitbook.io/selectable/api/events/select.md).

# select

Fires when an item is selected.

***

The callback has one parameter which returns a reference to the selected item.

```javascript
selectable.on("select", function(item) {
    // do something when an item is selected
});
```

Note that this event fires for each item that is selected. If you select a large number of items at once you will get an equally large number of callbacks. In this case it can be preferable to listen for the [`end`](/selectable/api/events/select.md) event instead where you will get a single callback no matter the number of items.
