title: Focus input on modal show
body: <p>How can I auto focus an input on modal show? Currently I do this but it isn't working:</p>
  
  <pre><code>jQuery(document).ready(function($) {
      $('#myModal').on('show.bs.modal', function() {
          $('input[name="myInput"]').focus();
      });
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/1aeur58f/2513/" rel="nofollow noreferrer">http://jsfiddle.net/1aeur58f/2513/</a></p>