Q:

jQuery Find Input Text Elements several levels

first at all thanks for reading.
I wrote a code that suppose to search any input type text inside many  the idea is search if each element inside of the  contains a text, if it's then the tr will be .show() if any of the elements inside of the tr contains the text the tr will be .hide().
But i cant get the value of the input, maybe some silly mistake.
So the structure could be:
   <tr>
    <td><div><div><input type="text" value="hello world" /></div></div><td>
    <td><div><input type="text" value="hello world" /></div><td>
    </tr>
    <tr>
    <td><input type="text" value="tutu" /><td>
    <td><span><input type="text" value="orl" /></span><td>
    </tr>

/* renglones is every <tr> */
$.each( renglones, function() {
        var inputs = $(this).find('input [type=text]').find('input');
        console.info(inputs);
        $(inputs).each(function() {
            console.info($(this).val());
        });
    });

A:

You can just use the :text selector
renglones.each(function () {//assuming renglones is a jQuery object
    var $inputs = $(this).find('input:text');
    $inputs.each(function () {
        console.info($(this).val());
    });
});

