How to focus an input field on Android browser through javascript or jquery

前端 未结 3 1512
挽巷
挽巷 2020-12-01 22:12

I\'ve tried $(\'#field\').focus(), and any other method found on the internet. Nothing worked. I have a simple html that reproduces the problem.



        
3条回答
  •  时光说笑
    2020-12-01 22:31

    Actually, the general javascript function "focus" is deactivated in the android browser. Hence, the jQuery focus function is deactivated since it's using the above.

提交回复
热议问题