Use of the jQuery plug-in EnPlaceholder, jquery. enplaceholder
On the login registration page recently, the plug-in EnPlaceholder is prompted in the implementation box, but the effect is poor in ie9. 1. If you remember the password, the text in the password box will overlap with the prompt. 2. The prompt appears only for the first time in ie, and the text changed will not appear in Delete.
First, write the detailed usage and parameters of the plug-in.
Before downloading the plug-in
1. <script type = "text/javascript">
$ (Function (){
$ ('Input, textarea '). placeholder ();
});
</Script>
In this way, ie will get the focus text to disappear, and the focus text display will be lost.
Add links, which are easy to understand and analyze
Http://www.zhangxinxu.com/wordpress/2012/02/html5-placeholderuse experience to share and expand the exhibition/