$(t).html()
returns
test1 test2
I want to retrieve the second td<
How's this:
$(t).first().next()
Apart from how beautiful the answer looks, you must also give a thought to the performance of the code. Therefore, it is also relavant to know what exactly is in the The But, on the other hand, if you take the Hope it helps. :)$(t) variable. Is it an array of or is it a node with several s inside it?
To further illustrate the point, see the jsPerf scores on a list with 50 children:
http://jsperf.com/second-child-selector
$(t).first().next() method is the fastest here, by far. node and find the children and and run the same test, the results won't be the same.