Problem getting parent value

Problem getting parent value

Hi I have the following table

<table>
        <tr>
                <td><input /></td>
                <td><select> </select><a id="link"></a></td>
        </tr>
</table>

I'd like to get the value of the input and select elements when I click the "a" tag with the parents method?, I tried:

        var input = $(this).parents('td input').val();
        var select = $(this).parents('td select').val();


But I get "undefined", any ideas? Thanks in advance.