开发者

jQuery UI Selectable, can't access items during selecting

I've got some piece of code with jQuery UI Selectable implementation. Just like this:

$(wrapper).selectable({
  selecting: function(event, ui){
    // some work with items
  }
});

In UI documentation I found words about accessing items that was selected during selection process (it's very important). But I can't do this through ui.item object despite the fact that I can do this for example with Sortable UI module. Please, if you have deal with this unusual behavior of 开发者_如何学CjQuery UI write couple words.


OK, that's resolved. You can operate with ui.selecting object during selection process. As example to get id of just selected element you must operate with ui.selecting.id.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜