Delete default value of an input text on click

前端 未结 13 2029
逝去的感伤
逝去的感伤 2020-11-29 18:24

I have an input text :


I want to put a default value like

13条回答
  •  青春惊慌失措
    2020-11-29 18:44

    Enter the following inside the tag, just add onFocus="value=''" so that your final code looks like this:

     
    

    This makes use of the javascript onFocus() event holder.

提交回复
热议问题