Buttons not working


#1


Please press the required key down on [object Object]. _ I spam some keys on my keyboard, and nothing is working!_

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


#2

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

Try this instead


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.