标签:readonly check 项目 typeid apple 元素 统计 his checked
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="width: 150px;" readonly="readonly" onclick="laydate()"/>
<span>--</span>
<input type="text" name="endTime" class="text" style="width: 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="width:150px;">普通</option>
<option value="12" style="width:150px;">代收货款</option>
<option value="13" style="width: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>
标签:readonly check 项目 typeid apple 元素 统计 his checked
原文地址:http://www.cnblogs.com/mybatis/p/6245168.html