title: Returning the full path to an element?
body: <p>I am looking for a way to find the full path to an element on click. </p>
  
  <p>For example, lets say I have this HTML code:</p>
  
  <pre><code>&lt;div&gt; &lt;ul&gt; &lt;li&gt;item 1&lt;/li&gt; &lt;li&gt;item 2&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;
  &lt;div&gt; &lt;ul&gt; &lt;li&gt;item 1&lt;/li&gt; &lt;li&gt;item 2&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;
  </code></pre>
  
  <p>I want to be able return the path (don't know what else to call it) to the clicked
  element. alert() will do for now.</p>
  
  <p>Lets say I clicked on the second li element in the second div. I would like a call 
  back of: </p>
  
  <pre><code>div:eq(1) li:eq(1)
  </code></pre>
  
  <p>If I clicked on the first li element of the first div, it would be: </p>
  
  <pre><code>div:eq(0) li:eq(0)
  </code></pre>
  
  <p>How would I do this?</p>
  
  <p>Is there a plugin out that can do this, or would I need to make it from scratch to get the index of element in the path?</p>
  
  <p>Thanks :)</p>