.u-section-1 {
background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url("images/curtains/curtains_header.jpg");
background-position: 50% 50%;
}
I'm having this class in .css and this jquery. I'm not able to change the background image.
$('.u-section-1').css("background-image", "linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('images/xabbb-min.jpg')");
The HTML is something like that:
<section class="u-align-center u-clearfix u-image u-shading u-section-1" id="carousel_4db0">
I also tried with 'document.getElementById or ElementsByClassName. The JS file is running but the change doesn't occur.
Thank you in advance for trying to help me.
images/curtains/and JS codeimages/, so I am not sure is it correct or not