문제

A quick sketch of my situation is:

<ul id="selectable">
  <li class="table" id="header-row">
    <ul class="row">
      ...
    </ul>
  </li>
  <li class="table">
    <ul class="row">
      ...
    </ul>
  </li>
  ...
</ul>

How do I disable li#header-row from being selectable?

도움이 되었습니까?

해결책

You can use the filter option to include (or with :not, exclude) options

$("#selectable").selectable({
    filter: ":not(#header-row)"
});

JSFiddle: http://jsfiddle.net/M7pmU/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top