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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:47:05+00:00 2026-05-26T07:47:05+00:00

I have two container divs and want to drag and drop elements between them.

  • 0

I have two container divs and want to drag and drop elements between them. I can drag and drop elements from the second container to the first but not the other way around. The problem is that the elements of the first container seem to have a lower z-index than the second container. When I drag them they slide under the second container. What must I do to have all the the elements be on top and be draggable to any droppable container? This is the fiddle showing the problem.

http://jsfiddle.net/vfAgd/12/

If you drag an element from container 1 to container 2, it goes under container 2. If you drag an element from container 2 you are able to drag it over container 1. This happens because container 2 is added to the document after container 1.

  • 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-26T07:47:06+00:00Added an answer on May 26, 2026 at 7:47 am

    To fix this I had to remove the z-index for the containers.

    .comdiv  { 
       padding: 0;
       margin-top: 20px;
       margin-left: 20px;
       border: 1px solid DarkKhaki;
       border-radius: 3px 3px 0px 0px;
       box-shadow: inset 0px 0px 10px DarkKhaki;
       /* z-index: 26; */
    }
    

    http://jsfiddle.net/vfAgd/17/ .

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

Sidebar

Related Questions

I have two divs inside a div, I want them both adjacent to each
http://jsfiddle.net/waitinforatrain/sEX3n/ I have two divs in a container with absolute position. Both of them
I have a container div that holds two internal divs; both should take 100%
I have two STL containers that I want to merge, removing any elements that
I want a two-column div layout, where each one can have variable width e.g.
I have two divs. I want one with id hor_rule to appear beneath the
I have a two divs which have class name container. Each of this divs
As the title explains, I have one container div, containing two floating divs of
I have two DIVs, first one has a link in it that contains the
I have two divs inside of a container. One on the left, one on

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.