We all know that there are many different selector combinations one can use to create a unique wrapped set of jQuery elements.
Does a tool (plugin, extension, etc) exist that allows the user to visually click on any section of the DOM (similar to Firebug’s inspect feature) and auto-suggests relevant potential selectors that match that element?
The tool would have internal knowledge of jQuery selectors (CSS selectors fall short) and would take into account the surrounding elements + the DOM to provide 10-20 helpful selector suggestions.
Here is a start point to play around with what you need (i hope) or just to understand:
JSFIDDLE DEMO
Hope this helps!