jquery change image src

99

change source of image jquery -

$("#my_image").attr("src","second.jpg");

Changing the img src using jQuery. -

//Change the img property using jQuery's attr method
$("#myImage").attr("src", 'img/new-image.jpg');

Comments

Submit
0 Comments