Jquery fadeout text insde a text box and textarea

后端 未结 2 1139
旧巷少年郎
旧巷少年郎 2020-12-19 12:19

Hi this should be a really easy problem but i am stuck. Is it possible to fade out the text inside a text box and textarea and leave the actual element in place. I have tr

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 12:24

    I think the only way to achieve this is by manipulating the input element's colour. Check out the JQuery color plugin that specializes in colour manipulations.

    It should work along the lines of

    $(formelement).animate({ color: "#FFFFFF" }, 600);
    

提交回复
热议问题