HTML input field hint

后端 未结 9 1464
轻奢々
轻奢々 2021-01-01 09:23

I want to provide the user with a hint on what he needs to enter into my text field. However, when I set the value, it does not disappear once a user clicks on the text fiel

9条回答
  •  伪装坚强ぢ
    2021-01-01 09:59

    This is exactly what you want

    $(document).tooltip({ selector: "[title]",
                                  placement: "top",
                                  trigger: "focus",
                                  animation: false}); 

    [ref]

提交回复
热议问题