My 'div' doesn't move to the right?I'm puzzled!




In section 10 Using .keydown()


Inside your $(document).ready() setup,
call the .keydown() event on $(document).


Pass .keydown() a function(){} as an input.

$(document).keydown( function() { });

Here's the twist: your function should take a single input, key,
which will help jQuery figure out which key was pressed.

$(document).keydown( function(key) { });

You could have used....

$(document).ready(function() {
     $(document).keydown(function(key) {
             var kd = parseInt(key.which,10)

Table ( look in Dec-collumn and beware of UPPERcase & lowercase )


Thank you for your help,I have solved it after I through the jQuery API document