Hint Text

I put an hint text inside the text box. And when I press a button, the text inside this hint text will be another text. Can you tell me the blueprint of this? More precisely, can you post a picture of the code? Let me tell you from the beginning, I’m a lazy person, so I didn’t want to investigate. I wrote it directly here and translated this article from translation.