Javascript text input fields that display instruction (placeholder) text

后端 未结 7 2103
抹茶落季
抹茶落季 2021-02-04 13:17

What\'s the best way to have a text input field that displays instructions of what to enter in that field in gray. When you focus on that input field, the gray instruction text

7条回答
  •  情深已故
    2021-02-04 13:44

    You can use watermark plugin in jquery.use this link.

    example

     $(this).Watermark("your instructions");
    

提交回复
热议问题