8/10 Bug: Accepts incorrect code


#1

On 8/10 the code is supposed to look like this:

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

However when I turned this in, it marked it as correct even though the code didn't work:

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

#2

No it didnt? It is for your computer


#3

Just reporting what happened on my end. Glad it works for you.


#4

Yea maybe it happenes to selected computers, ima flag just for assurance


#5

just click on the div first in the full screen preview (passed on focus principle), then press any key to move it.
it will accept the code this time whether you make $(document) or $('div')..