<script src="http://buy.ems.com.cn/transport/views/static/jscript/jquery-1.8.2.min.js"></script> <script> $(function(){ $(".trRadio table")...
<script src="http://buy.ems.com.cn/transport/views/static/jscript/Jquery-1.8.2.min.js"></script> <script> $(function(){ $(".trRadio table").on("click", "tr",function(){ var input = $(this).find("input"); var input = $(this).find("input"); //alert($(input).attr("checked")); if (!$(input).attr("checked")) { $(input).attr("checked",true); }else{ $(input).attr("checked",false); } }) $(".trRadio table").on("click", "input", function (event){ event.stopImmediatePropagation(); }) }) </script> <style> .tablebox table th,.tablebox table td{padding: 0 5px;line-height: 32px;} .tablebox table th{border-bottom: 1px solid #999;color: #333;font-weight: normal;text-align: left;} .tablebox table td{border-bottom: 1px solid #ddd;} .tablebox table td input{width: auto;} </style> <div class="tablebox trRadio"> <table cellspacing="0" cellpadding="0" border="0"> <thead> <tr> <th class="chooes">选择</th><th>公司名</th><th>姓名</th><th>联系电话</th><th>电子邮箱地址</th><th class="address">详细地址</th><th>邮编</th><th>城市</th><th>省份</th><th>国家</th> </tr> </thead> <tbody> <tr> <td><input type="radio" name="mycheck" /> 1</td> <td>AAAAAAA</td><td>David</td><td>07281929</td><td></td><td>401 MARSH LN STE 10 NEWPOR</td><td>123123</td><td>NEWPORT</td><td>Delaware</td><td>US</td> </tr> <tr> <td><input type="radio" name="mycheck" /> 1</td> <td>AAAAAAA</td><td>David</td><td>07281929</td><td></td><td>401 MARSH LN STE 10 NEWPOR</td><td>123123</td><td>NEWPORT</td><td>Delaware</td><td>US</td> </tr> </tbody> </table> </div>