How to set the focus on a hidden textbox field using JavaScript?

前端 未结 4 1888
自闭症患者
自闭症患者 2020-12-16 10:13

How can I set the focus on a hidden textbox element?

I tried this:

document.getElementById(\"         


        
4条回答
  •  旧时难觅i
    2020-12-16 11:13

    I don't think this is allowed, at least in IE. I got this information from jQuery's focus page.

提交回复
热议问题