Skip to content

A jQuery plugin to return a unique selector for a given element.

License

Notifications You must be signed in to change notification settings

anthonygreco/uniqueSelector

Repository files navigation

Unique Selector

A jQuery plugin to return a unique selector for a given element.

Build

npm install
bower install
grunt

Usage

$(element).uniqueSelector();
// returns unique selector string using jQuery's :nth-child()
// i.e. html > body:nth-child(2) > div:nth-child(1) > div:nth-child(17) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1)

License

MIT License

About

A jQuery plugin to return a unique selector for a given element.

Resources

License

Stars

Watchers

Forks

Packages

No packages published