update image attribute using jquery code example
Example 1: change image src jquery
$(document).ready(function () {
$('img').click(function(){
$(this).attr('src','images/download.jpeg')
})
})
Example 2: can we give a url to img with jquery
$("#my_image").attr("src","second.jpg");