I have an input field, and when I type in it, I want a div to be updated at the same time.

I have a script that works this way, but I've just copied it, and it uses very much code. So I want a...