view raw
yok2xDuran yok2xDuran - 6 months ago 58
CSS Question

Bootstrap w3school tutorial Dropdown not work

Hi I'm new with bootstrap and I'm trying to create the dropdown bootstrap and its not working.

Here is my HTML

<!DOCTYPE html>

<script type="text/javascript" src=""></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="ddButton" data-toggle="dropdown">Button</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>

I'm using as reference.


From the console:

bootstrap.min.js:6 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4

Update jQuery

3.x snippet:

<script src=""></script>

2.x snippet:

<script src=""></script>

1.x snippet:

<script src=""></script>