how to display an image on text click using jQuery

JavaScript
how to use text onclick to display images in javascript
Source

Also in JavaScript: