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

  • Home
  • SEARCH
  • 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 8059163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:35:13+00:00 2026-06-05T09:35:13+00:00

I have two HTML div elements, one source one destiny; inside of each one

  • 0

I have two HTML div elements, one source one destiny; inside of each one there are canvas elements. I want to be able to drag and drop one of these canvases from the source div into the destiny div using jQuery UI.

The problem is that once a canvas is dropped, its new position inside the destiny div is not as expected and I have not been able to correct this.

Here is the code I am working on: http://jsfiddle.net/Mf6zJ/1/

Any ideas on how to correct this?

Thanks

  • 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-06-05T09:35:14+00:00Added an answer on June 5, 2026 at 9:35 am

    Jquery droppable is just working fine. drop event handler is able to append the canvas to the destiny. Since, the draggable adds some styles to the canvas, canvas looks like its going outside of the destiny div.

    Here, one way to solve this quick & easy.

    $("#destiny").droppable({
        accept: "#source > canvas",
        drop: function(event, ui) {
            ui.draggable.appendTo($(this)).removeAttr('style');
        }
    });
    

    Here is the fiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two HTML elements inside a div. I want to display them in
I a template, I have five DIV elements underneath each other on a HTML
I have a html structure like this: <div class=one> <div id=two> <h2>Any</h2> <h4>Any</h4> </div>
I have three div elements, and I want to populate each element with its
I have two div elements inside another. At times, from user interactivity, these two
In the following HTML page, I have a div, which contains two spans (
OK, I have two HTML select elements and a button. I need to disable
I have those two html radio buttons and textarea. I basically want to enable
I have two templates for my HTML email: one for bigger screens, and one
I have two button bars- each contains links, but one also contains a submit

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.