title: Getting element name based on position in DOM
body: <p>I want to find the name or ID of a element where I got top and left position.</p>
  
  <p>I know how to use jquery to find the position of an element (Hovering over the div will trigger that position text will appear on screen):</p>
  
  <pre><code>    $(".item").hover(function () {
        var eleoffset = $(this).offset();
        $("#mouse").text("Mouse - Top: " + eleoffset.top + " - Left: " + eleoffset.left);
      });
  
  
  &lt;div class="item"&gt;This is a text block&lt;/div&gt;
  &lt;div id="mouse"&gt;Waiting for position data...&lt;/div&gt;
  </code></pre>