Fade out text value inside of text field using jQuery

后端 未结 3 1049
故里飘歌
故里飘歌 2020-12-15 13:06

I am not entirely sure if this is possible or not, I am pretty knowledgeable when it comes to jQuery and JavaScript in general, but this one has me stumped. I\'ve created a

3条回答
  •  孤街浪徒
    2020-12-15 13:17

    I just ran into this problem, my solution is quite simple, just change the attribute "value" to ' '. This essentially will replace the text with nothing.

    $(selector).attr('value', '');
    

提交回复
热议问题