Change behaviour of placeholder attribtute
The Placeholder Element which got introduced with HTML5 is great but sadly I really dislike its implementation, that when I click in a field the suggestion text is gone.
I'd like it to be different in the way that if empty it should show the placeholder text if it is focused or not. Basically always show the placeholder except if text is in the box.
I am using jQuery so any implementation which utalizes it would be okay to.
链接地址: http://www.djcxy.com/p/12180.html上一篇: 如何在IE11中设置输入文字颜色,但不是占位符颜色
下一篇: 改变占位符的行为