javascript - IE textbox loses focus after DOM modification -


i have search box(normal text box) changes html table after each keypress. on chrome works on ie input box loses focus whenever html table changes.

i tried set focus using focus() method makes cursor go beggining of textbox, , don´t want put cursor end of word in textbox, wanted or prevent lose of focus or make cursor behave normally.

eg. in case user types 3 letters , goes 1 letter , type new letter don´t want cursor go end of word stay @ same position after typing.

got no idea of happend morning ie stopped losing focus , behaved normally. haven´t change code. if possible moderator please close topic.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -