Let ie support the placeholder attribute, get it through a js section, and placeholderjs

Source: Internet
Author: User

Let ie support the placeholder attribute, get it through a js section, and placeholderjs
The placeholder attribute is really a new attribute that is super easy to use. Unfortunately, it is only supported by the new version of the browser. In order to write a prompt in the input box, the old method is to overwrite the span tag to create the feeling that the placeholder prompts, now, an easy-to-use JavaScript code provided by Amway is easy to use, so it is no longer afraid that the input box prompts that the placeholder attribute is incompatible ~~

 
This is useful in ie! If you don't talk much about it, paste the code !!! You only need to add a js file !!


It is the code above, but Sina cannot display it !!! To make it easier for you to copy and paste the data on my Baidu cloud, download and copy the data ~ Baidu cloud address: placeholder source code http://pan.baidu.com/s/1mgYtJWs thank you !!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.