开发者

jQuery Draggable to Sortable list

开发者 https://www.devze.com 2022-12-23 05:44 出处:网络
Good day! I right now have a function the drags an element from a list to a sortable list. But what I want to achieve is to insert my own created html 开发者_开发百科elementswhen i drag it to the s

Good day!

I right now have a function the drags an element from a list to a sortable list.

But what I want to achieve is to insert my own created html 开发者_开发百科elements when i drag it to the sortable list and not to insert the elements selected from the draggable list.

Appreciate you help in advance!

Thanks, steamboy


You can take a look at "receive" callback: http://jqueryui.com/demos/sortable/#event-receive and modify ui.item :)

0

精彩评论

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