title: jquery need alternative to focusout()
body: <p>Given the sample markup:</p>
  
  <pre><code>&lt;div&gt;
      &lt;input /&gt;
      &lt;input /&gt;
      &lt;input /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can one, via jQuery, determine that <code>div</code> has lost focus?</p>
  
  <p>I can use <code>focusout()</code> but that's not quite what I need. With focusout, it will get triggered as one tabs from input to input, as it's actually detecting (via event bubbling) that the input is losing focus.</p>
  
  <p>Another way to word the requirement: I need to know when focus has moved OUTSIDE of the div.</p>
  
  <p>I asked a similar question before:</p>
  
  <p><a href="https://stackoverflow.com/questions/2458458/jquery-focusin-and-preventing-bubbling">jquery focusin() and preventing bubbling</a></p>
  
  <p>But that was related to a pop-up UI and one can get around that by inserting a blank DIV behind it and putting a click/focus event on that as a trigger but that's won't work for this situation.</p>
  
  <p>The next thought I had was to test for focusin when calling focusout:</p>
  
  <pre><code>    $(".myobject").focusout(function(element) {
      if(!($(this).focusin())){
          console.log('doYourThing ' + $(this));
      }
  });
  </code></pre>
  
  <p>Alas, that doesn't work (I'm guessing due to the fact that it's evaluating focusin during the focusout event and, as such, it hasn't detected focusin yet. </p>
  
  <p>Any clever solutions to this problem? Am I maybe missing a native jQuery event that does exactly what I'm looking for?</p>
  
  <p>UPDATE:</p>
  
  <p>Actually, the simplified question:</p>
  
  <p>I need the equivalent of <code>$('div').blur()</code> but that would actually work on a div (since blur can't be triggered from a div)</p>