日期:2014-05-17  浏览次数:20633 次

如何在提交表单的时候判断文本框是否存在重复值?
如下:如何在提交表单的时候判断文本框是否存在重复值?
VBScript code

<form name="form1">
<% for i=0 to 5 %>
<input type="text" name="test<%=i%>" id="test<%=i%>"/><br />
<% next %>
<input type="button" onclick="test();" value="button"/>
</form>



------解决方案--------------------
除了遍历,估计没其它好的方法
------解决方案--------------------
1楼说的对