Skip to content

An informal jquery plugin that can print out a unique CSS selector of given node

Notifications You must be signed in to change notification settings

jay-w-opus/jquery.dom-address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

jquery.dom-address

An informal jquery plugin that can print out a unique CSS selector of given node

Example:

$("div").eq(0).domAddress();  // will return CSS selector

How it works:

It traverses up the node tree and describe the given node by its tag, most unique class and its nth-of-type id

Pull Request Welcome to make this more useful or formal.

About

An informal jquery plugin that can print out a unique CSS selector of given node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published