Skip to content
Robbie Chipka edited this page Dec 23, 2015 · 1 revision

The :range selector inclusively selects results with a range defined by two numeric arguments. The first argument is the starting position and the last argument is the last node position.

###Usage

document.querySelectorAll('a:range(3, 5)'); // select the 3rd through 5th <a> element
Clone this wiki locally