Search code examples
jquery-uiselectable

Jquery UI SELECTABLE, how to select one item only?


is there any way to define that, only one item can be selected with jquery.selectable widget?

Or i've to inmplement a workarround capturing events and manipulating by my self what happens?


Solution

  • $("#myList li").click(function() {
      $(this).addClass("selected").siblings().removeClass("selected");
    });