title: Why doesn't this if :focus statement work?
body: <pre><code>$(document).ready(function(){
  
    if($("select").is(":focus")){
      $(document).click(function(){
        $("select").blur()
        console.log('lala')
      })
    }
  
    $(document).click(function(){
      console.log($('select').is(':focus'))
    })
  
  })
  </code></pre>
  
  <p>So what happens here is that I've binded a click on anywhere to let me know if <code>select</code> is opened. And if it is, it should close and output <code>lala</code> in console. This doesn't happen, but the other click event does let me know if it is or is not opened.</p>
  
  <p>So the bug is on the first part of the code, but where?</p>