Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery unsupported pseudo: focusable

I tried to run the following code :

focusables = container.find(":focusable"); where container is a div.

I get the error :

Syntax error, unrecognized expression: unsupported pseudo: focusable

I am using jquery-1.9.1.What is the reason? Is there any other way to find all the focusable elements in a div?

like image 641
user584263 Avatar asked Nov 04 '13 06:11

user584263


1 Answers

This seems not to be part of jQuery, but of jQuery UI: https://github.com/jquery/jquery-ui/blob/44b2180782df6ef3324789324fcf3f98b85784a0/ui/jquery.ui.core.js#L93

Update: I've extracted this code into a small jquery "plugin", see: https://gist.github.com/njam/7974250

like image 194
njam Avatar answered Sep 20 '22 12:09

njam