> 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/add.md).

# add

Fires when an element is added to the instance.

***

The callback has a single argument which returns a reference to the new item.

```javascript
selectable.on("add", function(item) {
    // Do something when a new item is added to the instance
});
```
