I am trying to select all the elements which has tabindex greater than -1 (focus-able elements). So far this is what I came up with:
$element.find('[tabindex]:not([tabindex < \'0\'])');
Error: Syntax error, unrecognized expression: [tabindex < '0']
at Function.Sizzle.error (vendor.js:1463)
Selectors doesn't provide attribute selectors with numeric comparisons, and neither does jQuery.
In this specific case, I suppose you could just exclude elements with a tabindex starting with the
- sign (in addition to excluding elements with a tabindex of 0):