How to Get, Set and Delete Div Background Image using jQuery?

This tutorial is created to Set, Get and Delete background image. In this tutorial, You'll learn to Get, Set and Remove the background image using jQuery. Get Background Image You can use the below code for getting the background image in jQuery with fade out effect. $("#btn-get").click(function () { var bg = $('#bg-img').css('background-image'); bg = bg.replace('url(', '').replace(')', ''); alert(bg); }); Set Background Image You can use the below code for…