function updateV() {
alert("234");
alert($("#readerId").val());
$.ajaxFileUpload({
url: "programUpdate.do?readerId="+$("#readerId").val(),
secureuri:false,
fileElementId:"uploadFile",
dataType: "text",
success: function(data) {
showMessage("#updateOk");
},
error: function() {
showMessage("#dateSending");
}
});
}
alert($("#readerId").val()); 后面的语句没有执行 ? 什么原因? jquery版本 jquery-1.6.2.min.js 急求。。
前台jsp
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
<tr id="readerLine">
<td height="30" width="50%" align="left" style="padding-left: 10px;"><label><span style="color: red">*</span>基站ID</label></td>
<td><input type="text" id="readerId" name="readerId" readonly="readonly" class="text ui-widget-content ui-corner-all" /><br/></td>
</tr>
<tr>
<td height="30" width="50%" align="left" style="padding-left: 10px;"><label><span style="color: red">*</span>程序文件</label></td>
<td><input type="file" id="uploadFile" name="uploadFile" contenteditable="false" class="text ui-widget-content ui-corner-all" /><br/></td>
</tr>
<tr>
<td>
</td>
<td height="50">
<input type="button" onclick="updateV()" value="保存" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
<input type="button" value="取消" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/></td>
</tr>
</table>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货