change div background image on click (issues with image path)
<p>On click of a div i am passing an image path to a function and in that function i assign that path to the <code>background-image :url("imagePath")</code>.</p>

<p>Somehow the absolute path is being passed and not the actual path.</p>

<p>This is my div
    </p>

<pre><code>function update(image)
{
    $("#divImage")..css('background-image', 'url('image')');
}
</code></pre>

<p>but that somehow never worked
can someone please help me on this</p>
