title: jQuery: how to find first visible input/select/textarea excluding buttons?
body: <p>I tried</p>
  
  <pre><code>$(":input:not(input[type=button],input[type=submit],button):visible:first")
  </code></pre>
  
  <p>but it doesn't find anything.</p>
  
  <p>What is my mistake?</p>
  
  <p>UPD: I execute this on $(document).load()</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(window).load(function () {
    var aspForm  = $("form#aspnetForm");
    var firstInput = $(":input:not(input[type=button],input[type=submit],button):visible:first", aspForm);
    firstInput.focus();
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>and in the debug I can see that firstInput is empty.</p>
  
  <p>UPD2:
  I'm in ASP.NET page running under Sharepoint.</p>
  
  <p>I've found so far that for some elements it does find them (for fixed ones) and for some don't. :(</p>