I stored a url in a javascript variable "bg_url" and I want to attach this url to a background-image property to a html element.
my html
<div id=#wrapper>
<p>test</p>
</div>
and my jQuery is like
$("#wrapper").css({ background-image: "'print(bg_url)'" });
but I do not get the variable attached to the css property. Does someone have an idea?