Generating unique selector with jQuery Selectorator

jQuery Selectorator Plugin is a plugin to generate unique selector from jQuery object.

$('element').getSelector()

Set options.ignore to ignore classes, ids, names:

$('element').getSelector({ ignore: { classes: ['ui-droppable'] } })

Download or clone GitHub repository.

Also available on npm:

$ npm install jquery-selectorator

or bower:

$ bower install jquery-selectorator

Selectorator is inspired by Optimizely.

comments powered by Disqus