Unable to highlight text in textboxes in IE9

牧云@^-^@ 提交于 2019-12-13 00:59:05

问题


I have C# MVC web app that has some textboxes that in IE9 you can enter in text, but you can't highlight via the mouse or via holding shift and the arrow keys.

I've looked around on the web and i've found other people experiencing this, with no solution.

One site i found claimed it was an issue with IE9 on pages that make multiple AJAX calls, which my site has but, removing AJAX really isn't a solution.

Is there a way via code or via settings in IE9 so that users can highlight text in a textbox? Or is this an outstanding bug in IE9?

Edit: The website works perfectly fine in chrome


回答1:


Turns out it was a rogue jquery statement that was

(.someClass).disableSelected()

that was disabling selection on every single textbox in my site. The kicker being that IE and Chrome handled it one way and Firefox a different way making it seem like a different bug




回答2:


I had the same issue. Select Tools on the IE bar / F12 developer tools. under the tab ( Document Mode IE9 standards ) check marked Alt+9. Closed the developer box. Closed IE9 opened it back up and everything worked as it should. Hope this helps.



来源:https://stackoverflow.com/questions/9577328/unable-to-highlight-text-in-textboxes-in-ie9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!