jquery how to add a src to an image code example Example: can we give a url to img with jquery $("#my_image").attr("src","second.jpg");