开发者

jquery-ui making autocomplete list item draggable?

开发者 https://www.devze.com 2023-04-05 17:05 出处:网络
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 (

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

精彩评论

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