Answers for "how to set backgrond image of a div using jquery"

0

add background image to div using jquery

var imageUrl = "images/sky.jpg";
$(".div_with_class").css("background-image", "url(" + imageUrl + ")");
Posted by: Guest on December-19-2020

Code answers related to "how to set backgrond image of a div using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language