Is there a jQuery selector to get all elements that can get focus?

前端 未结 8 604
故里飘歌
故里飘歌 2020-12-01 15:54

This answer tells which HTML elements can receive focus. Is there a jQuery selector that matches exactly these elements?

For now I\'m just using $(\'input,sele

8条回答
  •  半阙折子戏
    2020-12-01 16:27

    In jQuery not exists the selector you're finding.

    If you're already using jQueryUI, you can use :focusable selector.

    http://api.jqueryui.com/focusable-selector/

提交回复
热议问题