jQuery: get parent tr for selected radio button
问题 I have the following HTML: <table id="MwDataList" class="data" width="100%" cellspacing="10px"> .... <td class="centerText" style="height: 56px;"> <input id="selectRadioButton" type="radio" name="selectRadioGroup"> </td> .... </table> In other words I have a table with few rows, in each row in the last cell I have a radio button. How can I get parent row for selected radio button? What I have tried: function getSelectedRowGuid() { var row = $("#MwDataList > input:radio[@name=selectRadioGroup]