Change Image jQuery - Javascript jQuery

Javascript examples for jQuery:Image

Description

Change Image jQuery

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-compat-git.js"></script> 
  <script type="text/javascript">
    $(window).on('load', function() {
$("a.playbutton").click(function() {
    $(this).find("img").attr("src","http://www.java2s.com/style/demo/InternetExplorer.png");
    return false;//from w  w w .j ava2 s.c  o  m
});
    });

      </script> 
 </head> 
 <body> 
  <a href="url" class="playbutton"> <img src="http://www.java2s.com/style/demo/Firefox.png" width="20"> </a>  
 </body>
</html>

Related Tutorials