<script type="text/javascript">
$(document).ready(function(){
$("input[name=sex][value=1]").attr("checked",true);
});
</script>
您的性别:
<input type="radio" name="sex" value="1" />男
<input type="radio" name="sex" value="0" />女
[size=medium][color=red][b]name的值来判断是哪一类[/b][/color][/size]
[color=blue][b]选中用如下方法[/b][/color]
$(this).attr("checked", true);
$(this).prop("checked", true);
[size=medium][color=red][b]prop也可以设置属性值[/b][/color][/size]
[color=blue][b]设置无效[/b][/color]
$(this).prop("disabled", "disabled");
[color=blue][b]设置有效[/b][/color]
$(this).removeAttr("disabled");
获取选中值
$('#wrap input[name="payMethod"]:checked ').val();