javascript - Bootstrap 4 modal does not work? -


i used example bootstrap create modal nothing happens?! on button click, nothing...

script src of bootstrap under jquery src ?

and example.

have nice day.

$('#mymodal').on('shown.bs.modal', function() {    $('#myinput').focus()  })
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet">    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">    <!--cb-modal -->  <!-- button trigger modal -->  <!-- button trigger modal -->  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mymodal">    launch demo modal  </button>    <!-- modal -->  <div class="modal fade" id="mymodal" tabindex="-1" role="dialog" aria-labelledby="examplemodallabel" aria-hidden="true">    <div class="modal-dialog" role="document">      <div class="modal-content">        <div class="modal-header">          <h5 class="modal-title" id="examplemodallabel">modal title</h5>          <button type="button" class="close" data-dismiss="modal" aria-label="close">            <span aria-hidden="true">&times;</span>          </button>        </div>        <div class="modal-body">          ...        </div>        <div class="modal-footer">          <button type="button" class="btn btn-secondary" data-dismiss="modal">close</button>          <button type="button" class="btn btn-primary">save changes</button>        </div>      </div>    </div>  </div>  <!-- js code -->  <script src="https://code.jquery.com/jquery-3.1.1.min.js">  </script>  <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js">  </script>  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js">  </script>  <!--js below-->      <!--modal-->  <script>    $(document).ready(function() {      $("#mymodal").modal();    });  </script>        </html>


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -