get table row data td and select
===

Here is what I want to do.

In the first row that has tds then  `a = the text in the  first cell` and  `b = the selected value of the drop down that the user selected`


How do I do this as my code is not working?


    $(document).ready(function () {

        var s = $('table td:first').parents('tr');

        var a = s.eq(0).text();
        var b = s.eq(1).find('option:selected').val();

        alert(a + "   " + b);

    });



   

    <table>
            <tbody>
                <tr>
                    <th>ID</th>
                </tr>
                <tr>
                    <td>
                        test
                    </td>
                    <td>
                        <select>
                            <option value="yes">yes</option>
                            <option selected="selected" value="no">no</option>
                        </select>
                    </td>
                </tr>
            </tbody>
        </table>