<img id="my_image" src="first.jpg"/> <script> //Then you can change the src of your image with jQuery like this: $("#my_image").attr("src","second.jpg"); </script>