• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1422
  • Last Modified:

Get value array from JQuery droppable

How can I retrieve array value from jquery droppable div?
1 Solution
Are you asking for the index of the droppable set?

If my assumption is off base, you will have to be a bit more descriptive of what you want.

I haven't tested it out so if this doesn't get you on the right track, let me know and I'll put together an actual working example (I don't have jqueryUI installed ATM). Hopefully this helps before I get a chance to make a proper example anyway. I think it would work something like this:

var droppedIndex = null;
   drop: function(event, ui) { droppedIndex = $('DIV.droppables').index(this); }

Open in new window

edyonlineAuthor Commented:
for example, i want to create drag and drop shopping cart. how can i know all the item that i dropped to the shopping cart?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now