showing results for - "add background image to div using jquery"
Maelie
13 Apr 2018
1var imageUrl = "images/sky.jpg";
2$(".div_with_class").css("background-image", "url(" + imageUrl + ")");