Javascript examples for jQuery:Image
Change Image jQuery
<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>