Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 454 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 454 Bytes

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