jQuery UI selectable - making multiple select default

Lars Thorén picture Lars Thorén · Mar 13, 2011 · Viewed 12.1k times · Source

I need to make multiple selection available by default, so the user doesn't have to hold ctrl. Would appreciate some help with this, thanks.

Answer

Przemysław Banaszek picture Przemysław Banaszek · Feb 18, 2014
$("#selectable").selectable();
    $("#selectable").on("selectablestart", function (event, ui) {
        event.originalEvent.ctrlKey = true;
    });