Agregar imagen de fondo a div usando jQuery

var imageUrl = "images/sky.jpg";
$(".div_with_class").css("background-image", "url(" + imageUrl + ")");
Ivan The Terrible