HTML input field hint

后端 未结 9 1496
轻奢々
轻奢々 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:34

    I have the same problem, and I have add this code to my application and its work fine for me.

    step -1 : added the jquery.placeholder.js plugin

    step -2 :write the below code in your area.

    $(function () {
           $('input, textarea').placeholder();
    });
    

    And now I can see placeholders on the input boxes!

提交回复
热议问题