对隐藏元素调用focus()时IE系列报错Can't move focus
错误详细信息:
Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept focus.
由于该控件目前不可见、未启用或其类型不允许,因此无法将焦点移向它
解决办法:
putting a try/catch around the focus call
参考:
can't move focus to the control because it is invisible
http://bugs.jquery.com/ticket/10859
http://bugs.jquery.com/ticket/11054
错误详细信息:
Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept focus.
由于该控件目前不可见、未启用或其类型不允许,因此无法将焦点移向它
解决办法:
putting a try/catch around the focus call
参考:
can't move focus to the control because it is invisible
http://bugs.jquery.com/ticket/10859
http://bugs.jquery.com/ticket/11054