<%@ page language="java" import="java.net.URLEncoder"%>
var audit_opinion = $("#audit_opinion").val(); //审核意见
if(audit_opinion.replace(/\s/g,'')==''){
alert("请填写审核意见!");
return;
}
if(audit_opinion.length>1000){
alert("审核意见最大长度为1000!");
return;
}
<tr>
<td class="title">审核意见</td>
<td>
<textarea name="priceDesc" id="audit_opinion" cols="45" rows="5"></textarea>(1000字内)
</td>
</tr>
//url = "submit.jsp?priceDes="+encodeURIComponent(audit_opinion);
//地址栏传值乱码问题
var audit_opinion = $("#audit_opinion").val(); //审核意见
if(audit_opinion.replace(/\s/g,'')==''){
alert("请填写审核意见!");
return;
}
if(audit_opinion.length>1000){
alert("审核意见最大长度为1000!");
return;
}
<tr>
<td class="title">审核意见</td>
<td>
<textarea name="priceDesc" id="audit_opinion" cols="45" rows="5"></textarea>(1000字内)
</td>
</tr>
//url = "submit.jsp?priceDes="+encodeURIComponent(audit_opinion);
//地址栏传值乱码问题