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 7545509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:56:54+00:00 2026-05-30T08:56:54+00:00

I am completely stuck on a drag and drop problem: I need to be

  • 0

I am completely stuck on a drag and drop problem: I need to be able to drag the yellow squares located in the cells of the row 1 into one of the cells of the row 3.

I made a small JS Bin example here

My constraints are that all the cells must have the property “overflow” because the cells can have plenty of yellow squares.

I tried to apply the property “clone / original” and “AppendTo” to the draggable elements, but I didn’t manage to deal with the main container scrollbar which have the property overflow as well.

Any help would be welcome!

  • 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-30T08:56:56+00:00Added an answer on May 30, 2026 at 8:56 am

    For being able to drag the element to another table cell, you need to set the “helper” option to “clone”.

    $(this).draggable({
        opacity: 0.7,
        helper: 'clone',
        scroll: false
    });
    

    Now in the “drop” event of the droppable, ui.draggable is the element that is being dragged. What you need to do it to append it the droppable.

    $(this).droppable({
        ...
        drop: function(event, ui) {
            $(this).addClass("cell-dropped");
            // "ui.draggable" is the element being dragged
            // "this" is the droppable element
            $(ui.draggable).appendTo(this);
        }
    });
    

    For the scrolling of the container DIV, you have to explicitly set it’s css position value to relative:

    .container{
        ...
        position: relative;
    }
    

    DEMO

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

Sidebar

Related Questions

I'm completely stuck and need your help... I've created a webservice stub with jaxb
I need help as I am completely stuck here. Any idea for crictism will
Hello everyone I am completely stuck with this problem. I want add the name
I am completely stuck on this one. I know my code is correct. It
I am completely stuck with this problem I'm having with excel. Basically I am
So I haven't been doing this for long but I'm completely stuck on this.
I'm reading the not so complete pytz documentation and I'm stuck on understand one
I am completely stuck on this issue so your help is greatly appreciated! I
Hej folks, I'm currently completely stuck with the following and don't even have the
Ok, so i have got myself completely stuck. My search skill are lacking and

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.