Using JQuery in Notepad++

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<In what way does your code behave incorrectly? Include ALL error messages.>
The script I written does not animate when I run it, I am trying to create a mobile webpage which is interactive by using jQuery.

PLEASE HELP…?

I have been following the interactive website tutorial and then stopped at the animate page to learn the Jquery tutorial. I feel I now understand jQuery enough to add the animate in my webpage.

However when I do it doesnt move my body to the left.
Also it does not move the menu ‘div’ to the left

```

Replace this line with your code.

HTML - index.html

Thomas Prudden
Prudden
Menu

Welcome to the site

jQuery - script.js

(document).ready(function() { (".icon-menu").click(function(){
(".menu").animate({left:'250px'},200); (‘body’).animate({left:‘0px’},200);

});

});

<do not remove the three backticks above>

@byteslayer54538,
Try it by changing

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>

into

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>

Thank you for the quick reply, but it didn’t work :pensive:

@byteslayer54538,
In the beginning i would also use

$(document).ready(function() {
        alert("I am running the =ready= function");
	$(".icon-menu").click(function(){
		$(".menu").animate({left:'250px'},200);
		$('body').animate({left:'0px'},200);
		
	});
        alert("I have reached the end =ready= function");
	
});

the alert doesn’t show when i refresh the page, I’m using a chrome browser to open it with.

@byteslayer54538,
With a google search
alert not functioning in chrome site:stackoverflow.com
for instance
http://stackoverflow.com/questions/19529036/google-chrome-not-displaying-alert-popups-for-one-site