Set keyboard focus to a

后端 未结 7 1872
不思量自难忘°
不思量自难忘° 2020-11-27 15:07

I have the following code snippet:

7条回答
  •  醉梦人生
    2020-11-27 15:24

    Are you in control of the asp function? If yes, then that'd be the easiest place to set focus. Otherwise, you could listen to DOMNodeInserted event (note: browser support may vary) and set focus to div (or its children) based on appropriate conditions.

提交回复
热议问题