开发者

jquery-ui making autocomplete list item draggable?

Is this possible to make item from a autocomplete jquery box draggable ?

example : drag an item from one list to another (selecting mp3 files names fro开发者_JAVA百科m one div and drop into another (play list)


It is possible, what you have to do is append the draggable after the items are created when someone starts typing. One way I did this was by adding the open event (sees when the autocomplete box is opened) and then I select the ui-menu-items that are created by autocomplete and I make them draggable. An example can be found here:

http://jsfiddle.net/2SYXT/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜