insert image in img src tag jquery code example
Example 1: how to add an image using jquery
// Change src attribute of image
$(this).attr("src", "images/card-front.jpg");
Example 2: can we give a url to img with jquery
$("#my_image").attr("src","second.jpg");