javascript - twitter bootstrap modal not loading -


here code copied twitter bootstrap page. however, isnt loading @ all! files correct modal still not showing up. please me.

<head>    <script type="text/javascript" src="js/bootstrap.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script> <script src="http://code.jquery.com/jquery.js"></script> <script type="text/javascript" src="javascript/autoresize_textbox.js"></script> <script type="text/javascript" src="javascript/submit_validate.js"></script>  <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/> <link rel="stylesheet" type="text/css" href="css/index.css"/> </head>   <body>    <!-- button trigger modal --> <a href="#mymodal" role="button" class="btn" data-toggle="modal">launch demo modal</a>  <!-- modal --> <div id="mymodal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="mymodallabel" aria-hidden="true">   <div class="modal-header">     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>     <h3 id="mymodallabel">modal header</h3>   </div>   <div class="modal-body">     <p>one fine body…</p>   </div>   <div class="modal-footer">     <button class="btn" data-dismiss="modal" aria-hidden="true">close</button>     <button class="btn btn-primary">save changes</button>   </div> </div> </body> 

you should include <script src="http://code.jquery.com/jquery.js"></script> first before including bootstrap js.

<script src="http://code.jquery.com/jquery.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> <script type="text/javascript" src="js/bootstrap.min.js"></script> //optional <script type="text/javascript" src="javascript/autoresize_textbox.js"></script> <script type="text/javascript" src="javascript/submit_validate.js"></script> 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -