Answers for "Changing the img src using jQuery."

0

Changing the img src using jQuery.

//Change the img property using jQuery's attr method
$("#myImage").attr("src", 'img/new-image.jpg');
Posted by: Guest on April-28-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language