How do I get form values to disappear when I enter the field?

后端 未结 5 1609
名媛妹妹
名媛妹妹 2021-02-08 21:39

I am making a simple form with about eight input fields. I want the initial value in the field to indicate what people are supposed to enter. For example value=\"name\" so that

5条回答
  •  借酒劲吻你
    2021-02-08 22:10

    This is how you should do it.

    
    

    If they click on it and click off the default value will go back. If they click on it and type something in, it won't try to erase what they put if they go back to click on it again.

提交回复
热议问题