7
rated 0 times
[
14]
[
7]
/ answers: 1 / hits: 16972
/ 13 Years ago, thu, march 1, 2012, 12:00:00
How to do background-position-x in Jquery ?
console.log($('.element').css('background-position-x'));
Outputs (an empty string)
console.log($('.element').css('background-position'));
Outputs 0px 0px
What I want to do is:
$(this).css('background-position-x', '-162px');
How to make it work ?
Thank you very much.
More From » jquery