jsp中用javaSript判断输入框时出现得一个问题(在线等!) 函数没有问题,应该是你的name写错了吧! 看看,itemName对应的那个input到底是什么呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 具体代码如下:-----------if(document.form1.union_sp_number.value==""&&document.form1.mobile_sp_number.value==""&&document.form1.phs_sp_number.value=="") {alert("请输入项目特服号!"); document.form1.union_sp_number.focus(); return false; } else if(document.form1.union_service_code.value==""&&document.form1.mobile_service_code.value==""&&document.form1.phs_sp_service.value=="") {alert("请输入计费代码!"); document.form1.union_service_code.focus(); return false; }--------------------- <input type="text" name="union_sp_number" maxlength="10" size="20"> 联通sp号码</p> <p> <input type="text" name="mobile_sp_number" maxlength="10" size="20"> 移动sp号码</p> <p> <input type="text" name="phs_sp_number" maxlength="10" size="20"> 小灵通sp号码</p> 本地发布WebService服务端后URL不知道是什么!!! 简单的session问题 工作中遇到的一个棘手问题 求一sql语句 -----关于页面转向 最后20分,问个小问题![在线等] 在线等,jsp文件Unable to load class for JSP!! 如何在tomcat4.0启动的时候让它显示classpath的信息? 网页中链接可执行文件,不想显示文件下载对话框,想直接在当前位置运行该程序,怎么办? 请问 C/S 和 B/S 是什么意思,简单说明一下 ! [求助]servlet用法?? 在java里建数组
-----------
if(document.form1.union_sp_number.value==""&&document.form1.mobile_sp_number.value==""&&document.form1.phs_sp_number.value=="")
{alert("请输入项目特服号!");
document.form1.union_sp_number.focus();
return false;
}
else
if(document.form1.union_service_code.value==""&&document.form1.mobile_service_code.value==""&&document.form1.phs_sp_service.value=="")
{alert("请输入计费代码!");
document.form1.union_service_code.focus();
return false;
}
---------------------
<input type="text" name="union_sp_number" maxlength="10" size="20">
联通sp号码</p>
<p>
<input type="text" name="mobile_sp_number" maxlength="10" size="20">
移动sp号码</p>
<p>
<input type="text" name="phs_sp_number" maxlength="10" size="20">
小灵通sp号码</p>