微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

SelectBetween

程序名称:SelectBetween

授权协议: 未知

操作系统: 未知

开发语言:

SelectBetween 介绍

A simple extension that allows you to select elements between and including
two indexes.
I’ve also included except, which will get all elements except for the ones
specified in the range provided.

Current version is 1.0

Example usage:
This will get the rows 1 and 2, and color the elements between 2, 3, 4 and 5
and elements 10, 11, 12 and 13
$(“table tr:between(1,2)”).find(“td:between(2,5),
td:between(10,13)”).css(“background-color”, “red”);

The following will color all rows except 1 and 2 and all elements less than 2
and greater than 5.
$(“tr:except(1,2)”).find(“td:except(2,5)”).css(“background-color”, “green”);

The plugin will automatically get the lowest value of the params passed.
So if you use :between(50, 8) it will get 8 to 50.

Note: Indexes are an interesting animal! They change based on the first
selector. It might take a little time to understand indexes with jquery if you
haven’t dealt with them before.

SelectBetween 官网

http://plugins.jquery.com/project/SelectBetween

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐