title: focus to a DOM element doesn't work
body: <p>I have this function on a Marionette view</p>
  
  <pre><code>onShow: function(){
              // $('#boxId').val("I am here");
              $('#boxId').focus();
  
          }
  </code></pre>
  
  <p>When I use the <code>$('#boxId').val("I am here");</code> it works well and the element's value is <code>I am here</code>. But when I try to focus on that element, it doesn't work, it doesn't focus. Any idea what is the problem?</p>
  
  <p>I also tried </p>
  
  <pre><code>&lt;input type="text" class="input_txt" id="boxId" maxlength="8" onload="$('#boxId').focus()"&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>onShow: function(){;
               $(document).ready(function(){
                      $('#boxId').focus();
  
                  });
          }
  </code></pre>
  
  <p>but it also didn't work.</p>
  
  <p>Finally solved with:</p>
  
  <pre><code>onShow: function(){
                setTimeout(function(){
                          $('#boxId').focus();
                      },1000);
          },
  </code></pre>