Answers for "how to add img attribute using jquery"

2

jquery change picture source

$("#my_image").attr("src","second.jpg");
Posted by: Guest on March-29-2020
0

change image src using jquery

//img is the attribute tag you can use #id if you want 
$("img").click(function () {
                    // Change src attribute of image
                    $(this).attr("src", "images/card-front.jpg");
                });
Posted by: Guest on December-04-2020

Code answers related to "how to add img attribute using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language