Simplest way to tab only through focusable descendants of a particular element?

前端 未结 3 1793
南旧
南旧 2020-12-16 00:28

Let\'s say I have a document full of focusable elements, either because they are innately focusable (like ) or because they have

3条回答
  •  感情败类
    2020-12-16 01:20

    The jqModal jQuery plugin does this out of the box by setting the modal option to true. The examples on this page with forms should show it. I remember going through the code to see what was happening and you could do it quite easily with plain JS.

提交回复
热议问题