拿到 选中的单选按钮(name为‘activeRedio’)的值
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<script type="text/javascript" src="js/jquery-1.4.js"></script>
<body>
<input type="radio" id="queryType_jh" value="1" name="activeRedio" checked="checked" /> 批号:
<input type="text" id="jh" name="jh" value="" style="ime-mode: disabled; width: 80px" />
<input type="radio" id="queryType_nd" value="2" name="activeRedio" /> 年度:
<select name="nd" id="nd" style="width:70px;height:18px;" autoWidth="true" value="2">
<option value="1">一</option>
<option value="2">二</option>
<option value="3">三</option>
</select>
<td><input type="button" value="增加记录" id="add" onclick="xinzeng();" /></td>
</body>
<script type="text/javascript">
function xinzeng() {
$('input[name=activeRedio]:checked').val(); //拿到 选中的单选按钮(name为‘activeRedio’)的值
console.log($('input[name=activeRedio]:checked').val())
}
</script>
</html>