js获取单选框radio的值
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript" src="js/jquery-1.4.js" ></script>
</head>
<body>
<input type="radio" id="sex" name="sex" value="男单选框值" checked="checked"> 男
<input type="radio" id="sex" name="sex" value="女单选框值"> 女
</body>
<script>
//获取单选框的值
var sexc = $("input[name='sex']:checked").val();
alert(sexc)
</script>
</html>