开发者

How can I drag an image to another position within a DIV (Similar to Facebook's album management)

开发者 https://www.devze.com 2023-03-10 22:04 出处:网络
FOR EXAMPLE: i have 2 pics: pic 1, pic 2. now i want to drag pic 2 in front of pic 1: pic 2, pic 1. so how can 开发者_JAVA技巧i do it?

FOR EXAMPLE: i have 2 pics: pic 1, pic 2. now i want to drag pic 2 in front of pic 1: pic 2, pic 1. so how can 开发者_JAVA技巧i do it? and if its possible please attachs some code. thankful for your answer.


Yes, I guess sortable is best suitable for you. You can also review drag and drop functionality too.

Have a look on demo

http://jqueryui.com/demos/sortable/


You could start with the jQuery UI Sortable framework.

0

精彩评论

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