1

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/

1 Answer 1

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.