This forum is now read-only. Please use our new forums! Go to forums
i'm doing a local webpage in netbeansIDE and i wanna do...
i’m doing a local webpage in netbeansIDE and i wanna do this menu…
$(document).ready(function() { $(“#menu”).accordion({collapsible: true, active: false}); });
but the the browser log tell me this: Uncaught TypeError: undefined is not a function (14:31:36:706 | error, javascript) at (anonymous function) (public_html/script.js:18:20) at fire (public_html/js/jquery.js:3073:30) at self.fireWith (public_html/js/jquery.js:3185:7) at jQuery.extend.ready (public_html/js/jquery.js:3391:13) at completed (public_html/js/jquery.js:3407:9)
can anyone help me?
Answer 53726d9a548c35b1cc0001d7
Either your script loading and firing before jQuery is loaded, or jQuery is not loaded at all. Add a script tag to the head, above your script.js script tag.
<link rel="stylesheet" href="stylesheet.css">
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="script.js"></script>
in this order.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
Ty!!