jQuery: Change y background position

hankknight
hankknight used Ask the Experts™
on
Using jQuery, I want to change the y background position without changing the x background position.


Neither these are valid working CSS:
background-position-y: -20px;
background-position: '' -20px;

How can I do this with jQuery?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I already saw those links and they are useless.  They don't provide a solution.
what do you get when you do

$(this).css("background-position");

you can extract xpos from it and then create new value with updated ypos.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial