我想让radio来控制当前我选择的是机动车还是特种车,如下所示:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<input type="radio" id="insuranceType" name="insuranceType" value="0"/>机动车
<input type="radio" id="insuranceType" name="insuranceType" value="1"/>特种车
<script type="text/javascript">
$(document).ready(function ()
{
$("#insuranceType").change(function ()
{
var insuranceTypeVar = $("input[name='insuranceType']:checked").val();
aler