130
rated 0 times
[
132]
[
2]
/ answers: 1 / hits: 35822
/ 11 Years ago, tue, june 4, 2013, 12:00:00
I'm new to jquery and bootstrap, and I can't get them to play nicely with each other. I have a page with both bootstrap dropdowns and jquery sliders. However, I can't get both of them to work at the same time.
Bootstrap dropdowns work with this file, and sliders break
<html lang=en>
<head>
<link rel=stylesheet href=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css type=text/css media=all />
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js></script>
<script src=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js type=text/javascript></script>
<link href=/bootstrap/css/bootstrap.min.css rel=stylesheet media=screen>
<script src=/js/slider_input.js></script>
</head>
<body>
....
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js></script>
<script src=/bootstrap/js/bootstrap.min.js></script>
</body
</html
By removing the second to last line like so:
Sliders work, and bootstrap dropdowns break
<html lang=en>
<head>
<link rel=stylesheet href=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css type=text/css media=all />
<script src=//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js></script>
<script src=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js type=text/javascript></script>
<link href=/bootstrap/css/bootstrap.min.css rel=stylesheet media=screen>
<script src=/js/slider_input.js></script>
</head>
<body>
....
<script src=/bootstrap/js/bootstrap.min.js></script>
</body
</html
More From » jquery