title: Why does my modal not work? Bootstrap4
body: <p>I wonder why my Bootstrap 4 modal is not working. Any clue? I literally copy and paste from the Bootstrap 4 website (<a href="http://v4-alpha.getbootstrap.com/components/modal/#live-demo" rel="noreferrer">http://v4-alpha.getbootstrap.com/components/modal/#live-demo</a>) Also, I have added js that they say. </p>
  
  <p>Please find below the code.</p>
  
  <p>Thanks</p>
  
  <p>I have checked other posts and I didn't have luck</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#myModal').on('shown.bs.modal', function() {
    $('#myInput').focus()
  })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
    &lt;meta content="Description" name="description"&gt;
    &lt;meta content="index,follow" name="robots"&gt;
    &lt;link href="/images/myicon.png" rel="icon" type="image/png"&gt;
    &lt;title&gt;TITLE HERE&lt;/title&gt;
    &lt;!--CSS--&gt;
    &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"&gt;
  
    &lt;!--Bootstrap CSS JS--&gt;
    &lt;!--fonts--&gt;
  
    &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;!--CB-modal --&gt;
    &lt;!-- Button trigger modal --&gt;
    &lt;!-- Button trigger modal --&gt;
    &lt;button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"&gt;
    Launch demo modal
  &lt;/button&gt;
  
    &lt;!-- Modal --&gt;
    &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog" role="document"&gt;
        &lt;div class="modal-content"&gt;
          &lt;div class="modal-header"&gt;
            &lt;h5 class="modal-title" id="exampleModalLabel"&gt;Modal title&lt;/h5&gt;
            &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
            &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
          &lt;/button&gt;
          &lt;/div&gt;
          &lt;div class="modal-body"&gt;
            ...
          &lt;/div&gt;
          &lt;div class="modal-footer"&gt;
            &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
            &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;!-- JS code --&gt;
  &lt;script src="https://code.jquery.com/jquery-3.1.1.min.js"&gt;
  &lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"&gt;
  &lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"&gt;
  &lt;/script&gt;
  &lt;!--JS below--&gt;
  
  
  &lt;!--modal--&gt;
  &lt;script&gt;
    $(document).ready(function() {
    $("#MyModal").modal();
    });
    })
  &lt;/script&gt;
  
  
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>