Another problem am having is that jquery is not working in my localhost xampp

Another problem am having is that jquery is not working in my localhost xampp
0

#1

Another problem am having is that jquery is not working in my localhost xampp. Hope someone help


#2

You are going to have to start writing more details and background to your questions. You need to explain what you are trying to do and what you have tried. Your current post is very generic. We don’t know what you mean by “not working”. For example, do you see any errors in the console (Ctrl+Shft+I in Chrome) when running your code?


#3

Yes, error report type:Not allowed to load local resource: file:///C:/xampp/htdocs/jquerycom.js


#4

I assume you have code somewhere which references the jquerycom.js file? What does this code look like?


#5
<script type="text/javascript">
$(document).ready(function(){
			$('.main-menu').hide();
			
			$('.hamburger').click(function(){
				$('.main-menu').slideToggle();
			});
		});
</script>

#6
<script type="text/javascript>
$(document).ready(function(){
			$('.main-menu').hide();
			
			$('.hamburger').click(function(){
				$('.main-menu').slideToggle();
			});
		});
</script>

#7

I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.