'Use JQuery selector on the result of a selection?

First, let's say I am selecting a bunch of TD Elements with:

var htmlRows = $( ".contentRow" );

I then do some searching and find that one of the nodes has something I need.

htmlRows.each( function(index, htmlRow){/*insert something to test here*/});

If my test is positive, i then need to find some tr node within that specific TD node, let's say with the id 'inputText'.

How would I go about doing this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source