How to clear an input when clicked?

0

I have a form and I want the page to appear in the " here" field and when the user clicks to type, I want this sentence to add up! It's possible ? How do you do it?

    
asked by anonymous 05.09.2017 / 18:12

1 answer

4

I think the easiest way to do this would be to use the placeholder attribute of html :

Name <input type="text" name="name" placeholder="insert your name here"><br>

When the user starts typing, the message in question disappears from within the field.

    
05.09.2017 / 18:15