Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

TopZIndex plugin for jQuery


This jQuery plugin calculates the highest CSS z-index value in the current document or specified set of elements, and also provides the ability to push one or more elements to the top of the z-index order.

To get the highest z-index in the document:
$.topZIndex();

To get the highest z-index for all div elements:
$.topZIndex("div");

To move an element to the top-most z-index:
$("#myElement").topZIndex();

To set an element's z-index to 10 more than the top-most z-index:
$("#myElement").topZIndex( { increment: 10 } );

The plugin is particularly useful for dynamic HTML popup windows/panels (or other dynamic elements) the order of which need to be re-shuffled on the page dynamically.

The minified version (included) is only 374 bytes.

The source code fully documents usage, with included support for Visual Studio IntelliSense.

Downloads



5
Your rating: None Average: 5 (1 vote)