Skip to content Skip to sidebar Skip to footer

Replacing Background Image Using JQuery Not Working

I have created a parent div. Inside that div there are multiple child divs: the first one is holding a background image, the second one, the website name, and the third one, some t

Solution 1:

change

$('.contentImg').css("background-image", "images/gurus_bw.jpg)"); // miss: url(..

to

$('.contentImg').css("background-image", "url(images/gurus_bw.jpg)");  

read CSS background-image Property


Post a Comment for "Replacing Background Image Using JQuery Not Working"