It works in Firefox, but not in Chrome: changing the css property ‘background-image’ via jQuery.
I’m trying to stylize themes for my website and I have made a few color options, but the background-image property doesn’t seem to be changeable via the handler .css in Chrome
$('#h_background').css('background-image',"url('backgrounds/h_"+currentTheme+".png'");
however, it works fine in FF; any suggestions =)?
edit: loading new stylesheets that have the background-image property defined as something else works fine. I do find it strange that explicitly declaring it does not seem to work =(
You’re missing a ) at the end of the url after .png’. It should be