Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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");
                });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #image #src #jquery
ADD COMMENT
Topic
Name
6+9 =