I just started using Ajax in some of my sites. I just figured out how to get a message to pop up in a form input on an event. (Using the w3schools example). Though, how could so that when the user clicks on an image that it will enter a response into the textfield without clearing it.
Also another way is to display text when an event/function is triggered. Like to write response text in a <div>, <span>, or <p> tag.

Thanks!