开发者

jquery.sortable driving me nuts

开发者 https://www.devze.com 2023-04-13 02:13 出处:网络
i\'m trying to make a set of elements sortable. Each element is created after an ajax request, so basically not开发者_StackOverflow中文版hing in the DOM is available to bind sortable() on DOM ready.

i'm trying to make a set of elements sortable. Each element is created after an ajax request, so basically not开发者_StackOverflow中文版hing in the DOM is available to bind sortable() on DOM ready. I managed to set a callback occuring after my json manipulations have ended and the dom is updated.

Here's a preview of what i'm doing now.

http://jsfiddle.net/zrFsT/

Am I missing something ? What could it be ? Thanks for the help.


You were missing jquery-ui from the jsfiddle.

I've added it here: http://jsfiddle.net/zrFsT/

And updated your question.

Is this all that was wrong or are you trying to accomplish more?

Update: http://jsfiddle.net/zrFsT/1/

Removed multiple "lines" and the connect with feature usage.

0

精彩评论

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