2

I am using jQuery UI 1.8.16 and am having trouble dragging a draggable item through a sortable list and then dropping it on a droppable item.

Here is an example of my problem http://jsfiddle.net/9RURx/1/

The draggable item needs to be able to attach to the sortable list or be dropped on the droppable item.

Any suggestions?

1 Answer 1

1

Passing through sortable seems to make the list element lose its selector... not sure why, but the "accept" property doesn't work anymore

Quickest solution is to change accept to accept: ".ui-draggable"' see it working here: http://jsfiddle.net/9RURx/3/

now maybe you don't want to use the built in class. You can add a class to the LIs you want to be dropable and refer to them that way. Like so: http://jsfiddle.net/9RURx/4/

Sign up to request clarification or add additional context in comments.

1 Comment

Weird, I guess it's still a bit buggy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.