title: Finding the last focused element
body: <p>I'm looking to determine which element had the last focus in a series of inputs, that are added dynamically by the user. This code can only get the inputs that are available on page load:</p>
  
  <pre><code>$('input.item').focus(function(){
      $(this).siblings('ul').slideDown();
  });
  </code></pre>
  
  <p>And this code sees all elements that have ever had focus:</p>
  
  <pre><code>$('input.item').live('focus', function(){
      $(this).siblings('ul').slideDown();
  });
  </code></pre>
  
  <p>The HTML structure is this:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;&lt;input class="item" name="goals[]"&gt;
      &lt;ul&gt;
          &lt;li&gt;long list here&lt;/li&gt;
          &lt;li&gt;long list here&lt;/li&gt;
          &lt;li&gt;long list here&lt;/li&gt;
      &lt;/ul&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;a href="#" id="add"&gt;Add another&lt;/a&gt;
  </code></pre>
  
  <p>On page load, a single input loads. Then with each add another, a new copy of the top unordered list's contents are made and appended, and the new input gets focus. When each  gets focus, I'd like to show the list beneath it. But I don't seem to be able to "watch for the most recently focused element, which exists now or in the future."</p>
  
  <p><strong>To clarify:</strong> I'm not looking for the last occurrence of an element in the DOM tree. I'm looking to find the element that <em>currently</em> has focus, even if said element is not present upon original page load.</p>
  
  <p><a href="http://droplr.com/174l8H+">this image http://droplr.com/174l8H+</a></p>
  
  <p>So in the above image, if I were to focus on the second element, the list of words should appear under the second element. My focus is currently on the last element, so the words are displayed there.</p>
  
  <p>Do I have some sort of fundamental assumption wrong?</p>