jquery-getpath

1.0.2 • Public • Published

jquery-path

Gets the CSS path to a jQuery node or the element representation of a library with a similar API.

Based on a StackOverflow answer.

Install

npm install jquery-path

Usage

getPath($('.foo')) // => 'html>body>div#bar>div.foo'

License

This code is licensed under the MIT license.

Package Sidebar

Install

npm i jquery-getpath

Weekly Downloads

5

Version

1.0.2

License

MIT

Last publish

Collaborators

  • yamadapc