【问题标题】:Is there a way to halt the tab button going any further有没有办法阻止标签按钮继续前进
【发布时间】:2017-05-29 19:56:38
【问题描述】:

我有一个表格,每一页都会滑到一个新的。我注意到如果用户在一个 div 的末尾继续按 tab,它会跳到下一个隐藏的 dic,只有在单击按钮时才能查看该 dic。无论如何要在最后一个输入字段处停止选项卡吗?

谢谢

【问题讨论】:

    标签: javascript jquery


    【解决方案1】:

    您可以将隐藏的 div 的“tabindex”字段设置为-1,并在您希望它显示/能够以标签方式显示时将其删除。更多信息在这里:Disabling tab focus on form elements

    【讨论】:

      猜你喜欢
      • 2020-07-25
      • 1970-01-01
      • 2011-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-20
      • 1970-01-01
      相关资源
      最近更新 更多