8. My code is not working plz help to figure out the error


#1

My looks like this:

$(document).ready(function(){
$('div').keydown(function(){
$('div').animate({left:'+=10px'},500);
});
});

It is not working plz help


#2

HI inside you $( ) before .keaydown() try to put "document"


#3

It is still not working plz help..


#4

So your code looks like that...

$(document).ready(function(){
    $(document).keydown(function(){ 
        $('div').animate({left:'+=10px'},500); 
    });
});

if is look like that try to refresh the page and try again..


#5

i refreshed but when i click save and submit it takes me to full screen and even if i press a key it does not work and gives an error telling me to follow the instructions properly


#6

sometime is the zoom of the pages who gave the error if you are on windows try Ctrl + 0 and if your are on apple comand + 0 it set the zoom at default or you can try on another browser.


#7

u have helped me a lot but to be honest it is not helping... plz if u can try again help me...


#8

Your Html and jQuery should be like that



#9

it is looking exactly like that but when it comes to full screen after pressing Save & Submit it doesn't work... which key did u press can u tell


#10

UPDATE: Sorry dude i waited for sometime then it worked sorry to get u bored.


#11

Your welcom I'm glade that i could help you.