谢谢了,刚才的已经给分,但问题还没解决,再开一贴,帮我看看 但我用其它程序试一下却支持onsubmit啊,我想还是程序问题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 a[0]=document.getElementById('DropDownList1').value;--->a[0]=document.getElementById('DropDownList1').options[document.getElementById('DropDownList1').selectedIndex].value; a[0]=document.getElementById('DropDownList1').options(document.getElementById('DropDownList1').selectedIndex).value; 'DropDownList1'?还是document.getElementById(' + DropDownList1.ClientID + ') 你这样做吧a[0]=document.all.<%= DropDownList1.ClientID %>.options(document.all.<%= DropDownList1.ClientID %>.selectedIndex).value; function checkSubmit(){ IsEqual(); if(b==1) { return false; } else{ return true; }} 终于有提示了,但一下子提示了7下,我想window.alert('球员有重复!');写错位置了,还有就是提示完后还是继续执行了修改程序,我要提示后不执行程序怎么办? 这样修改一下:for (j=0;j<11;j++) { for (num=j+1 ;num<11;num++) { if (a[j]==a[num]) { b=1; 这个地方不alert! break; } else { b=0; } } }function checkSubmit(){ IsEqual(); if(b==1) { alert('球员有重复!');这个地方alert就可以了 return false; } else{ return true; }} return false;之后应该不继续执行才对 string 与stringbuilder 区别? C#如何使用user32.dll获得主机名 在Datelist中获取checkbox被选中几项 怎样通过FontUnit类型得到字体的点阵大小? 关于.NET 2005 的安装问题 在 JavaScript 中怎么截取某一字符串的一部分?? 关于索引的问题~ java 与.NET java与.Net(C#)开发的优点和缺点 “正在登陆...”的这种没有“最大化”、“最小化”和“关闭”框体怎样写的? 高分求以C#为服务器端以java为客户端的网络通讯程序例子。谢谢 。 将数据从一个数据库导入另一个数据库的效率
--->
a[0]=document.getElementById('DropDownList1').options[document.getElementById('DropDownList1').selectedIndex].value;
还是
document.getElementById(' + DropDownList1.ClientID + ')
a[0]=document.all.<%= DropDownList1.ClientID %>.options(document.all.<%= DropDownList1.ClientID %>.selectedIndex).value;
{
IsEqual();
if(b==1)
{
return false;
}
else{
return true;
}
}
写错位置了,还有就是提示完后还是继续执行了修改程序,我要提示后不执行程序怎么办?
for (j=0;j<11;j++)
{
for (num=j+1 ;num<11;num++)
{
if (a[j]==a[num])
{
b=1;
这个地方不alert!
break;
}
else
{
b=0;
}
}
}
function checkSubmit()
{
IsEqual();
if(b==1)
{
alert('球员有重复!');这个地方alert就可以了
return false;
}
else{
return true;
}
}