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