Use jquery to solve the problem that the IE input box cannot be entered

Source: Internet
Author: User

In IE10 above version, Microsoft in order to improve the convenience of IE input box, add the text content delete all and password eye function, but sometimes open a new page, the input box is locked cannot edit, need to refresh the page, or if the input box has the content needs to click the fork after the input box to enter. But what we need is what we need to type in now. What about that? This can be resolved in the following ways:

$ ("input[type= ' text ']"). each (function () {$ (the). focus (function () {$ (this). Select ();        });        });            $ ("textarea"). each (function () {$ (the). focus (function () {$ (this). Select ();        }); }); The solution is to add focus events to all input boxes (of course, to the specified input box), and when the focus is clicked, the text of the current input box is selected, then you can switch to edit state.

Use jquery to solve the problem that the IE input box cannot be entered

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.