On click of a div i am passing an image path to a function and in that function i assign that path to the background-image :url("imagePath").
Somehow the absolute path is being passed and not the actual path.
This is my div
function update(image)
{
$("#divImage")..css('background-image', 'url('image')');
}
but that somehow never worked
can someone please help me on this
Notes:
1) You have double
..2) you need
+around the variableCool.
Edit: people keep editing my posts for no reason – was there any reason to change the
)with full stops?! Bizarre…