title: Check to see if any Input elements are in focus
body: <p>I have a jquery script that displays a div when any key on the keyboard is pressed. I'd like to add a condition to the script that will only run the script if no other input area (textarea or texfields) are in focus on the page. That way you can actually type on the rest  of the page without showing the div. </p>
  
  <pre><code>$(document).on('keydown', function (e) {
      if (!$('#test').is(':visible')) {
          //######## IF (every input is not active....) {
          if (65 &lt;= e.keyCode &amp;&amp; e.keyCode &lt;= 90) {
              $(elem).fadeIn();
              $('#textarea').val('');
              $('#textarea').focus();
              $('#textarea').val(temp);
          }
      }
  });
  </code></pre>
  
  <p>Thanks. I can give every other textarea on the page the same ID if that is necessary.</p>