Using jQuery's .focus() to set focus in Firefox on a Mac

后端 未结 1 1797
[愿得一人]
[愿得一人] 2021-01-15 21:47

I am trying to get .focus() to work in Firefox (version 33.1.1) on a Mac. Some similar questions mentioned solutions that had the effect of .focus()

相关标签:
1条回答
  • 2021-01-15 22:31
    <input type="text" id="test" autofocus="autofocus">
    

    If you add the autofocus attribute to the input it may do what you are trying to do.

    0 讨论(0)
提交回复
热议问题