change image src jquery

JavaScript
$(document).ready(function () {
    $('img').click(function(){
        $(this).attr('src','images/download.jpeg')
      })
})$("#my_image").attr("src","second.jpg");
Source

Also in JavaScript: