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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T08:58:50+00:00 2026-05-19T08:58:50+00:00

I have two jquery plugin of my own and the elements created by the

  • 0

I have two jquery plugin of my own and the elements created by the two plugin had its own z-index value.E.g:

// auto increase the z-index value 
// auto increase the z-index to the maximum of their own when I drag it.

element1 created by plugin1 and has the z-index:1;
element2 created by plugin1 and has the z-index:2;
....

// auto increase the z-index value 
// auto increase the z-index to the maximum of their own when I drag it.

element2 created by plugin2 and has the z-index:1;
element2 created by plugin2 and has the z-index:2;
.....

and both of them can be draggable,so when I click one of them I want its z-index value to be the maximum of all the elements I created.But now the z-index were separated!

I am using JQuery UI draggable plugin but don’t like the stack option !

Thank you very much!!

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

    Try using name spaces

    for eg in plugin 1
    you can define

    var Plugin1 = {}; //data abuot the plugin
    Plugin1.element1 = {}; //data about the element
    Plugin1.element1.zindex = 1000; //data about the element
    

    This can be retrieved in any part of the js
    but make sure its defined before document.ready

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

Sidebar

Related Questions

Greetings, I am using facebox popup jquery plugin. In their JS they have the
I am creating my own jQuery plugin. Here is the code which I have
rather than using a jquery plugin. if i have two fields and the first
Hi I am using jQuery UI themes and Accordion plugin. I have two html
i have two jquery(can increase), one of them masterpage and the other is in
I have two pages of jQuery, Page1 and Page2, and I'm able to get
How do I have two effects in jQuery run in sequence , not simultaneously?
I'd like to check ancestry using two jQuery objects. They don't have IDs, and
I want to split up the jQuery .js file into two, but I have
I have two elements: <input a> <input b onclick=...> When b is clicked, I

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.