jQuery plugin that returns simplest selector of elements.
<script src="jquery.js"></script>
<script src="dist/selectorator.min.js"></script>
Returns an array of simplest selectors of the element.
Returns Selectorator instance.
Default options.
String or Array of values to ignore from generated selectors.
$("a").on("click", function(){
alert($(this).getSelector().join("\n"));
return false;
});
$ npm install
$ npm test
- Atsushi Nagase (http://ngs.io/)