Adding dynamic preview to Questions and Answers

Hello,

I would like to achieve the follow:

When a user asks a question or answers a question, I want their input to be echoed ( in real time) in a paragraph above where they are typing.

Can you tell me where I should look to accomplish this?

thanks