# selecteditem

Fires when an item is selected.

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

    selectable.on("selecteditem", 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 event instead where you will get a single callback no matter the number of items.