Delete default value of an input text on click

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

I have an input text :


I want to put a default value like

13条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 18:52

    The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format).

    The short hint is displayed in the input field before the user enters a value.

    Note: The placeholder attribute works with the following input types: text, search, url, tel, email, and password.

    I think this will help.

提交回复
热议问题