# 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`](https://mobius-studios.gitbook.io/selectable/api/events/select) event instead where you will get a single callback no matter the number of items.
