Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 837813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:12:13+00:00 2026-05-15T05:12:13+00:00

A small question hopefully with a simple answer, I am using jQuery draggable and

  • 0

A small question hopefully with a simple answer, I am using jQuery draggable and droppable to place items into a dock. Using the below code for the drop.

$("#dock").droppable({
            drop: function(event, ui) {
                //Do something to the element dropped?!?
            }
        });

However I couldn’t find a way to get what element was actually dropped, so I can do something do it. Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:12:14+00:00Added an answer on May 15, 2026 at 5:12 am

    From the drop event documentation:

    This event is triggered when an
    accepted draggable is dropped ‘over’
    (within the tolerance of) this
    droppable. In the callback, $(this)
    represents the droppable the draggable
    is dropped on. While ui.draggable represents
    the draggable.

    So:

    $("#dock").droppable({
         drop: function(event, ui) {
                   // do something with the dock
                   $(this).doSomething();
    
                   // do something with the draggable item
                   $(ui.draggable).doSomething();
               }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully a question with a very simple answer, but it's not one that I've
2 small parts to this question which hopefully will clear up some ambiguity for
Just a small question I can't find an answer to. If I add a
I'm not much into COM interfaces, so i have a small question, say I
Got a (hopefully small) question regarding SVN and checking out repos. Basically I see
I'm new to Xcode development and have a (hopefully simple) question: I want to
Another small question about STL: i have Dictionary: map <string,vector <Wordy> > Dictionary; using
Hopefully this isn't too specific/small a question, but I was wondering if anyone knew
Small question, anyone have a small example on different data formatting tips when using
small question about C++ replace function. I'm parsing every line of text input line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.