attr() 方法设置或返回被选元素的属性值。
var startTime = $("input[name='startTime']").val();
var endTime = $("input[name='endTime']").val();
//统计类型
var siteFeeProject = $("input[name='siteFeeProject']:checked").val();
<tr>
<td>
<label class="label">交易时间</label>
<input type="text" name="startTime" class="text" style=" 150px;" readonly="readonly" onclick="laydate()"/>
<span>--</span>
<input type="text" name="endTime" class="text" style=" 150px;" readonly="readonly" onclick="laydate()"/>
</td>
<td>
<input type="radio" value = "1" name="siteFeeProject" checked="checked"> 按网点、费用项目统计
</td>
<td>
<input type="radio" value = "2" name="siteFeeProject"> 按费用项目统计
</td>
</tr>
var accountTypeId = $("#accountTypeId option:selected").val();
<td>
<label class="label">账户类型</label>
<select id="accountTypeId" name="accountTypeId">
<option value="10" style="150px;">普通</option>
<option value="12" style="150px;">代收货款</option>
<option value="13" style="150px;">业务员</option>
</select>
</td>
var centerId = $("input[name='centerId']").val();
<td>
<label class="label">开户行</label>
<input type="text" name="centerName" id="centerName" class="text txts" onkeyup="queryCenter(event,this,'centerId','2001');"/>
<input type="hidden" name="centerId" class="centerId"/>
</td>