title: Autofocus Input Element on Modal Open Bootstrap 4
body: <p>I am trying to autofocus input element on bootstrap 4 modal open . I have tried below code from <a href="http://getbootstrap.com/docs/4.0/components/modal/" rel="nofollow noreferrer">http://getbootstrap.com/docs/4.0/components/modal/</a> but this is not working.</p>
  
  <p>Can someone help me to give working demo  </p>
  
  <pre><code>$('#myModal').on('shown.bs.modal', function () {
    $('#myInput').trigger('focus')
  })
  </code></pre>