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
You probably want this (to make it like a normal CSS background-image declaration):
$('myObject').css('background-image', 'url(' + imageUrl + ')');