$.focus() not working

后端 未结 14 1205
走了就别回头了
走了就别回头了 2020-11-27 02:48

The last example of jQuery\'s focus() documentation states

$(\'#id\').focus()

should make the input focused (active). I can\'t seem to get

14条回答
  •  广开言路
    2020-11-27 03:02

    Make sure the element and its parents are visible. You cannot use focus on hidden elements

提交回复
热议问题