Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Changing the img src using jQuery.

//Change the img property using jQuery's attr method
$("#myImage").attr("src", 'img/new-image.jpg');
Source by thisinterestsme.com #
 
PREVIOUS NEXT
Tagged: #Changing #img #src
ADD COMMENT
Topic
Name
6+1 =