I am using jQuery UI Selectable plugin. I want to select one item at a time. But jQuery UI Selectable plugin allows multiple selection by clicking/ dragging / holding CTRL
This worked for me. It prevents "lassoing" multiple rows and ctrl + click.
$(function() { $("#selectable").selectable({ selecting: function(event, ui){ if( $(".ui-selected, .ui-selecting").length > 1){ $(ui.selecting).removeClass("ui-selecting"); } } }); });