How to change background-image css property w/jquery

Posted by Click Upvote on Stack Overflow See other posts from Stack Overflow or by Click Upvote
Published on 2010-06-17T00:04:40Z Indexed on 2010/06/17 0:12 UTC
Read the original article Hit count: 156

Filed under:
|

How can I set the background-image css property of say a div using jquery? will something like this work?

$("#div").css("backgroundImage", "url('test.jpg')");

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery