javascript - How do I get bootstrap modal working? -


below html

<!doctype html> <html> <head> <title>title</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="styles/bootstrap.min.css" /> <link rel="stylesheet" type="text/css" href="styles/bootstrap-theme.min.css" />  <script type="text/javascript" src="js/jquery-1.11.2.min.js"></script> <script type="text/javascipt" src="js/bootstrap.min.js"></script> </head> <body> <button type="button" class="btn btn-primary btn-lg"     data-toggle="modal" data-target="#mymodal">launch demo modal </button>  <!-- modal file filter --> <div class="modal fade" id="mymodal" tabindex="-1" role="dialog"     aria-labelledby="mymodallabel" aria-hidden="true">     <div class="modal-dialog">         <div class="modal-content">             <div class="modal-header">                 <button type="button" class="close" data-dismiss="modal"                     aria-label="close">                     <span aria-hidden="true">&times;</span>                 </button>                 <h4 class="modal-title" id="mymodallabel">modal title</h4>             </div>             <div class="modal-body">...</div>             <div class="modal-footer">                 <button type="button" class="btn btn-primary">apply</button>             </div>         </div>     </div> </div> </body> </html> 

i've looked answers same question. solutions same recommend loading jquery.js before bootstrap.js. mine doesn't work inspite of taking care of same.

edit using bootstrap-3.3.4 , jquery-2.1.3

remove

     type="text/javascipt"  

from bootstrap.min.js script.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -