I am triying to install a dropdown in materialize using instructions but when ran the code console throw me an error
This is the code
//main.js
$(()=>{
alert("Hola de nuevo! Ahora con Materialize")
console.log('Main cargando')
$('.dropdown-button').dropdown();
})
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ejs Test</title>
<link rel="stylesheet" href="css/materialize.css">
<link rel="stylesheet" href="css/materialize.min.css">
<script src="js/materialize.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<ul class="dropdown-content" id="dropdown1">
<li>TextoPrueba</li>
<li>TextoPrueba</li>
<li>TextoPrueba</li>
</ul>
<div class="navbar-fixed">
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo">BrandLogo</a>
<ul class="right hide-on-med-and-down">
<li><a href="#">Texto1</a></li>
<li><a href="#">Texto2</a></li>
<li><a href="#">Texto3</a></li>
<li><a href="#" class="dropdown-button" data-activates="dropdown1">TextoDropDown</a></li>
</ul>
</div>
</nav>
</div>
</body>
</html>
in the console of the code inspector throw me
Uncaught TypeError: $(...).dropdown is not a function
what can i do to show the dropdown correctly?