Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select Element with index greater than 3 and less than 6

i want to select element that its index is greater than 3 and less than 6 ex: $("td:gt(3)") and $("td:lt(6)") ?

like image 474
Hamid Reza Salimian Avatar asked Jan 16 '12 13:01

Hamid Reza Salimian


People also ask

Which selector select the list elements with an index greater than 3?

The :gt() selector selects elements with an index number higher than a specified number. The index numbers start at 0.

Which of the following is a jquery selector for selecting items beyond a certain index?

gt selectorversion deprecated: 3.4 Description: Select all elements at an index greater than index within the matched set.


1 Answers

make use of slice(start, end)

$('td').slice(3,6)

documentation

like image 176
dku.rajkumar Avatar answered Oct 28 '22 14:10

dku.rajkumar