I have only reviewed your HTML here and have not tested. But at first glance I would think that it is the order of your JS includes. Bootstrap relies on JQuery functions right off the bat. And you should include JQuery before any Bootstrap files to ensure they load properly. I would assume the same is for the add on your are looking to use. I would try:
<script src="js/jQuery-1.9.1.js"></script> <script src="js/bootstrap.js"></script> <script src="js/bootstrapSwitch.js"></script> <script src="js/functions.js"></script> - J e f f C o n k l i n - - http://www.getoutsidenj.com - http://twitter.com/GetOutsideNJ - http://www.carabs.com On Wed, Apr 24, 2013 at 1:58 PM, Tim <[email protected]> wrote: > Hi twitter-bootstrap-Group, > > i want to add the > bootstrap-switch<https://github.com/nostalgiaz/bootstrap-switch/tree/a814dcd3962e13d725910764f2c837da5c46346d>to > my project. But it does not work. And I do not know the reason. > So I hope someone can look over my code: > > <!DOCTYPE html> > <html> > <head> > <title>Bootstrap 101 Template</title> > <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;" > charset="UTF-8"> > <!-- Bootstrap --> > <link href="css/bootstrap-combined.min.css" rel="stylesheet" > media="screen"> > <link href="css/bootstrapSwitch.css" rel="stylesheet"> > </head> > <body> > <h1>Test</h1> > <div class="switch"> > <input type="checkbox"> > </div> > <script src="js/bootstrap.js"></script> > <script src="js/bootstrapSwitch.js"></script> > <script src="js/jQuery-1.9.1.js"></script> > <script src="js/functions.js"></script> > </body> > </html> > > thanks a lot > tim > > -- > You received this message because you are subscribed to the Google Groups > "twitter-bootstrap" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "twitter-bootstrap" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
