title: jQuery alternative for document.activeElement
body: <p>What I wanted to do is figure out whenever the user is engaged with an INPUT or TEXTAREA element and set a variable flag to true... and set that flag to false immediately after the user is no longer engaged with them (ie. they've clicked out of the INPUT/TEXTAREA elements). </p>
  
  <p>I used jQuery's docuemnt.ready function to add the onclick attribute to my body element and assign it to my getActive() function.</p>
  
  <p>The code for the getActive() function is as follows:</p>
  
  <pre>
  function getActive()
  {
    activeObj = document.activeElement;
    var inFocus = false;
    if (activeObj.tagName == "INPUT" || activeObj.tagName == "TEXTAREA")
    {
       inFocus = true;
    }
  }
  </pre>
  
  <p>I'd really like to keep by project withing the jQuery framework, but can't seem to find a way of accomplishing the same logic above using JUST jQuery syntax.</p>