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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:17:45+00:00 2026-06-10T20:17:45+00:00

I have a very specific problem which don’t seem to be asked before –

  • 0

I have a very specific problem which don’t seem to be asked before – at least I didn’t found anything. Whatever, here’s the situation:

I have n draggable divs. Those divs containing lists, which can be edited by doubleclick, they are sortable and on and on and on – you see you can do a bit within those containers.

Now my Problems:
First, as part of JQuerys draggable, I can auto-set the z-index to the highest value of all elements – but only when it was dragged. With a simple click within the event-area, the z-index is set to auto which doesnt mean that the “clicked” element will be shown on top.

The second and bigger problem is, that it seems to be impossible to get any handler on the div to get it to the top without modifying every handler which sets focus to the div or any of its childs.

Are there any suggestions for how I can add something like a handle to the complete div which will always be called when clicking anywhere on it?

Thanks a lot,

Nurickan

  • 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-10T20:17:47+00:00Added an answer on June 10, 2026 at 8:17 pm

    If I understand your problem you could use the click and focus events to update the z-index. The focus will fire whenever a child element in the div gets focus.

    $("div").draggable(
        {start:updateContent}
    );
    $("div").click(updateContent);
    $("div").focus(updateContent);
    
    function updateContent()
    {
        $("div").css("z-index", 1);
       $(this).css("z-index",2);
    }
    

    ​
    Sample fiddle: http://jsfiddle.net/Cwp2e/14/

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

Sidebar

Related Questions

The problem that I have is somehow very specific. I have to implement a
This may be subjective, I don't know: I have this problem, which I'm kind
we have a problem, where we don't really know how to tackle it. very,
I have a very specific case that I need to debug. I need to
I have a very specific SSL issue on my Android. If I try to
I have a very specific set of needs and am looking for a library
I have a particular application that needs to calculate something very specific, and while
I have a custom closed-hashset/open-addressing (i.e. no linked lists) class. It's very specific to
I have a very odd issue. When I execute a specific database stored procedure
I am very much a beginner to rails and I have a specific need

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.