You can use slice() for this, for example: $("tr td"). Slice(2, 7) //of if you have the $(this). Children("td").
Slice(2, 7) The above would get the 3rd through 7th td since it's a 0-based index. Or the jQuery-less version, say you have the tr DOM element: var tds = tr. GetElementsByTagName("td"); for(var I = 2; i.
You can use .slice() for this, for example: $("tr td"). Slice(2, 7) //of if you have the $(this). Children("td").
Slice(2, 7) The above would get the 3rd through 7th , since it's a 0-based index. Or the jQuery-less version, say you have the DOM element: var tds = tr. GetElementsByTagName("td"); for(var I = 2; i.
– Hamster Oct 11 '10 at 12:31 @Hamster - Yup, I added a non-jQuery version as well in case that's what you're after...I assumed based on tags you were after the jQuery selector version. – Nick Craver? Oct 11 '10 at 12:32 Well what I'm after is a way to grab subsets quickly, as I'm dealing with potentially thousands of child elements (not table columns or rows, necessarily), and I'd like not be rebuilding arrays to slice up each time.
– Hamster Oct 11 '10 at 12:34.
Say I have an arbitrary number children (e.g. "td"s) of a given element (e.g. A "tr"), and I need to grab a given number of these (say, 4) at a given position (say, 3; td's 3 - 67, in this case). What would the best query for doing this look like? Note that I could be dealing with a potentially thousands of children, so I'd like to not be slicing up arrays in the thousands on a routine basis.
Edit: It doesn't have to go through jQuery, if there's a more efficient option that goes straight to the DOM...
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.