use*_*263 5 javascript jquery jquery-selectors focusable
我试着运行以下代码:
focusables = container.find(":focusable"); where container is a div.
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Syntax error, unrecognized expression: unsupported pseudo: focusable
Run Code Online (Sandbox Code Playgroud)
我使用的是jquery-1.9.1.原因是什么?有没有其他方法可以找到div中的所有可聚焦元素?
nja*_*jam 10
这似乎不是jQuery的一部分,而是jQuery UI的一部分:https: //github.com/jquery/jquery-ui/blob/44b2180782df6ef3324789324fcf3f98b85784a0/ui/jquery.ui.core.js#L93
更新:我已将此代码解压缩到一个小的jquery"插件"中,请参阅:https: //gist.github.com/njam/7974250
| 归档时间: |
|
| 查看次数: |
3385 次 |
| 最近记录: |