Answers for "jquery onclick image change"


jquery change picture onclick

<!-- -->
<!-- -->

<div class="img-container">
  <img id="changeMe" src="">

<img class="preview" src="images/preview-1.jpg">
<img class="preview" src="images/preview-2.jpg">
<img class="preview" src="images/preview-2.jpg">
 <!-- Script --> 
  $('.preview').on('click',  function() {
    $('#changeMe').prop('src', this.src);
Posted by: Guest on June-08-2020

jquery change picture source

Posted by: Guest on March-29-2020

Code answers related to "jquery onclick image change"

Code answers related to "Javascript"

Browse Popular Code Answers by Language