To switch a div background image in jQuery you can use the following snippet.

Sample jQuery

$("#myImageId").attr("src","newImage.jpg");

3 thought on “How to switch a div background image in jQuery”

Leave a Reply