SelectBetween

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-15 15:44:16

软件介绍

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.

本文地址:https://codercto.com/soft/d/23443.html

About Face 2.0

About Face 2.0

Alan Cooper、Robert M. Reimann / Wiley / March 17, 2003 / USD 35.00

First published seven years ago-just before the World Wide Web exploded into dominance in the software world-About Face rapidly became a bestseller. While the ideas and principles in the original book......一起来看看 《About Face 2.0》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具