I have an image URL in a imageUrl variable and I am trying to set it as CSS style, using jQuery:
imageUrl
$(\'myObject\').css(\'background-image\', image
For those using an actual URL and not a variable:
$('myObject').css('background-image', 'url(../../example/url.html)');