Temnis Posted November 11, 2014 Share Posted November 11, 2014 Hey guys! I am messing around with some jQuery Stuff. Now I thought about having some "Draggable" Objects and an "Droppable" Object to drop the "Draggable" stuff into. I also can get the current position of a "Draggable" Object when I drop it. BUT! Is it possible to get all Objects already dropped into the "Draggable" Object? Like something finished I could use? Example: I have a "Droppable" Object. Now I drag&drop some "Draggable" Objects into the "Droppable" Object. Now I push a button. This button calls a function. And inside that function I want to "ask" the "Droppable" Objects: "What is currently inside of you? And where is it?" Link to comment Share on other sites More sharing options...
justsomeguy Posted November 11, 2014 Share Posted November 11, 2014 I guess it depends how the draggables are added to the droppables. If they are added as direct children then you can just get the list of child nodes and loop through that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now