1
2Demo: http://jsfiddle.net/u1s62Lj8/1/
3
4You need the jQuery and Boostrap Javascript files included in your HTML page for the toggle to work. (Make sure you include jQuery before Bootstrap.)
5
6<html>
7 <head>
8 // stylesheets here
9 <link rel="stylesheet" href=""/>
10 </head>
11 <body>
12 //your html code here
13
14 // js scripts here
15 // note jquery tag has to go before boostrap
16 <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
17 <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
18 </body>
19</html>