swap jquery backgroundColor for background image?
Posted
by Joel
on Stack Overflow
See other posts from Stack Overflow
or by Joel
Published on 2010-05-05T05:16:54Z
Indexed on
2010/05/05
5:38 UTC
Read the original article
Hit count: 214
A friend gave me a solution that uses this jquery code:
.css({ backgroundColor: '#ddd' })
Instead, i'd like to use a background image. How do I change the jquery code to do that?
I'm wanting to do something like
.css({ backgroundImg: 'images/newsletter-dropdown.jpg' })
Thanks!
© Stack Overflow or respective owner