<input type="radio" class="danxuan" οnclick="clickRadio(this)" />
//引入jQuery文件
<script src="你的路径/jquery.min.js"></script> <script type="text/javascript"> //点击选中状态 function clickRadio(obj) { if($(obj).attr("checked") == undefined){ $(obj).attr("checked",true); }else{ $(obj).attr("checked",false); } }; </script>