Search code examples
javascriptselectorzepto

Zepto greater than selector


Is it possible to do something like this in Zepto for selecting elements greater or less than an index:

$( "td:gt(4)" ).css( "backgroundColor", "yellow" );
$( "td:gt(-2)" ).css( "color", "red" );

as on https://api.jquery.com/gt-selector/


Solution

  • Short answer: No

    Longer answer: According to zepto js JQuery CSS extensions are not supported. Zepto has some CSS extended selectors (github) but that also does not support the functionality that you are looking for.