<tr>
  <td><input id="gvFlowList_ctl02_rdoNo" type="radio" name="gvFlowList$ctl02$rdoNo" value="rdoNo" /><label for="gvFlowList_ctl02_rdoNo">1</label></td>
  <td>调查</td>
</tr>
如何使用jQuery让该行点击的时候,其中的radio选中?

解决方案 »

  1.   

    csdn出问题了?明明消息里有三个人回复,怎么打开只有一个?
      

  2.   

    $(':radio').parent().parent().click(function(){
    $(this).find(':radio').attr("checked", true);
    });
      

  3.   

    试试这个$("tr").click(function(){
        $(this).find("input[type='radio']").attr("checked",true);
    })
      

  4.   


    <script type="text/javascript">
    <!--
     $(fun);
     function fun(){
       $("tr").click(function(){
        $(this).find(":radio").attr("checked",true);
        });
     }
    //-->
    </script>
      

  5.   

    <tr onclick="RowClick(this);" >
      <td><input id="gvFlowList_ctl02_rdoNo" type="radio" name="gvFlowList$ctl02$rdoNo" value="rdoNo" /><label for="gvFlowList_ctl02_rdoNo">1</label></td>
      <td>调查</td>
    </tr>function RowClick(tr)
    {
      tr.cells[0].children[0].click();
    }