Ich bin neu in Jquery und Bootstrap, und ich kann sie nicht dazu bringen, nett miteinander zu spielen. Ich habe eine Seite mit Bootstrap-Dropdown-Menüs und jquery-Schiebereglern. Allerdings kann ich nicht beide zur gleichen Zeit arbeiten.Skript Reihenfolge für Jquery mit Bootstrap
Bootstrap-Dropdown-Listen arbeiten mit dieser Datei, und Schieber
<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
durch wie die vorletzte Zeile entfernen brechen so:
Sliders Arbeit und Bootstrap-Dropdown-Listen brechen
<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
Einer von denen ist für jqueryui und einer ist von jquery, brauche ich nicht beide? – bcoop713
Versucht es trotzdem und es ist immer noch kaputt :( – bcoop713
oh yeah Jetzt sehe ich Entschuldigung. Sie müssen zuerst Ihre tatsächliche jquery laden, sonst UI wird auch nicht funktionieren. So sollte dies der Kopf sein –