I\'m trying to apply CSS values with jquery but class selector or id selector does not not work for some reason.
Here is my fiddle:
As you can see nothing happen
$("kitten").css("background-position", x + "px 0");
this line is wrong..
this one will do the trick
$("#kitten").css("background-position", x + "px 0");
you need to put the right string literals for ID selectors check it right here.