如何取得下拉列表框的默认值!在线侯着 我要取得下拉列表框的默认值以便判断,关键是:下拉列表的默认值是从数据库中取得的值可能为null字符串,我要判断它,大家说怎么写啊function check_form($obj){return true;} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function check() { if( shortContent.serviceType.options[shortContent.serviceType.selectedIndex].value=='null') { alert("所输入的值不能为null!"); return false; }对不对 } function check() { if( shortContent.serviceType.options[shortContent.serviceType.selectedIndex].value=='null') { alert("所输入的值不能为null!"); return false; } }<INPUT type=submit value=提交 onClick="return check()"> 使用JS调用java发布的webservice时遇到的问题 jsp网页大小写解析问题 求助!2个表要是建立主外键关系后,向主键插入值,外键是不是也同时被插入? hibernate 维护多对多表的问题!插入数据不成功 求AJAX的用户注册验证代码 onsubmit="submittomcat()" 什么时候调用? 本地DTD加载 Struts问题,为什么? 请问谁知道:net.sf.hibernate.Hibernate;在哪里下载 spring 中多个contextConfigLocation的关系 session设置,不能正确读取 在线等,简单问题
{
if( shortContent.serviceType.options[shortContent.serviceType.selectedIndex].value=='null')
{
alert("所输入的值不能为null!");
return false;
}
对不对
}
{
if( shortContent.serviceType.options[shortContent.serviceType.selectedIndex].value=='null')
{
alert("所输入的值不能为null!");
return false;
}
}
<INPUT type=submit value=提交 onClick="return check()">